This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let imagePaths = ["kedi", "kopek", "kus"] | |
| let imageViews = imagePaths | |
| .map { "\($0).jpeg" } // ilk back-end'den sadece imaj isimlerinin geldiğini düşün | |
| .map(UIImage.init) // Daha sonradan buradaki her değeri UIImage.init ile yani UIImage(named:)'e parse ediyoruz | |
| .map(UIImageView.init) // Daha sonra bu UIImage objelerini UIImageView(image:)'e parse ediyoruz | |
| print(imageViews) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @interface UIImage (Caption) | |
| @property (nonatomic, copy) NSString *caption; | |
| @end | |
| // Implementation | |
| #import <objc/runtime.h> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void objc_setAssociatedObject(id object, void *key, id value, objc_AssociationPolicy policy) | |
| id objc_getAssociatedObject(id object, void *key) | |
| void objc_removeAssociatedObjects(id object) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let productDetail = ProductDetail(name: "Apple Macbook", amount: 1, price: 100) | |
| productDetail.totalSumOfBasket = "Total basket price is \(productDetail.price * 2)" | |
| print(productDetail.totalSumOfBasket) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private var associateKey: Void? | |
| extension ProductDetail { | |
| var totalSumOfBasket: String? { | |
| get { | |
| return objc_getAssociatedObject(self, &associateKey) as? String | |
| } | |
| set { | |
| objc_setAssociatedObject(self, &associateKey, newValue, .OBJC_ASSOCIATION_RETAIN) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class ProductDetail { | |
| var name: String | |
| var amount: Int | |
| var price: Double | |
| init(name: String, amount: Int, price: Double) { | |
| self.name = name | |
| self.amount = amount | |
| self.price = price |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var selectedSection1: [Int: Bool] = [:] | |
| var selectedSection2: [Int: Bool] = [:] | |
| var selectedSection3: [Int: Bool] = [:] | |
| var selectedSection4: [Int: Bool] = [:] | |
| var sections = [selectedSection1, selectedSection2, selectedSection3, selectedSection4] | |
| extension ViewController: UITableViewDelegate { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| import Parchment | |
| class FirstVC: UIViewController { | |
| override func viewDidLoad() { | |
| super.viewDidLoad() | |
| self.title = "First" | |
| self.view.backgroundColor = .red | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| iVBORw0KGgoAAAANSUhEUgAAAWQAAADICAYAAADfspsBAAAAAXNSR0IArs4c6QAAABxpRE9UAAAAAgAAAAAAAABkAAAAKAAAAGQAAABkAADGXkeuysoAAEAASURBVHgB1L13dxXH1u7rb3Hfvbe9nbEJBoNtTDZgY4zBxgYTjRPRZBACCRAoIgRIQgjlnFGWUEBIKCCRnMO29z7vee8449xxz/0e8z5P1ZrqWq1eCtjvCX/UmFXV1b16dVf9+ulZ1VVPNDXWS3NTg7Q01yPckNaWBoSm0dDS3Dga1/w2bK9H+Pij9bL4tTny/uLFUlmYK52tzdLW3CJtra1S21AniefPyfrV78iS+fPkXHS0dLe1SSuO14Rw4vhRKcjLlRPHjkpXe6O0t7VIdNQxqS0vlXbs397eLK2tjTi3JrnZ3CodLc3SgvgplG+qqZG2FhyrqUWaW5ukpYW/ifI8bxy7o6kZoUVutrbJ+fxsScu/LjdbWrF/i7Q3t8vNtps4NtI4RnvrTfw24y3IwzHbO6QtFG6238TvtAaENuS1O4FpnDOOdbOtw4SO9k5h6LzZFRi6OrrFDbe6esQNPd23heH2rd6w0NvTJ5HCnd5+6UMYGhyR3MIyeWHay/L8M0/J8rkzpb2mVIbvDsjwnT4Z6e+Xjq5u2f7pDnll5suyfNky/FavDPYPyUD/oPTgGHU3mqXzVj+ub4fcHRyQuwND0tDcIXfuDKLciNztH4YdRvl7xnLfwYF7uA9dcuc2fmdoWPqHh/B7wzLSO2zOifsNYf+BgQHsc1eGUX7ozpA0376F7XdN3t2+YRnuuytD/X1Io6z5Df4Wjs/zw3kwDPeNmKD549kB/uYkQ3/fgIwXeI2DQt/tO2H3xb1vei+DrHvP3Xh3562w+uHWI61btFrf3Ppo6jTrdag+dt7sQB2cOGh97e7skqaGRlmz+j2ZPXOWzJ31qsyaPkMOHT4gt2/3S8n1bPn6q92yf9deOXXyjNy82S0327tQ328itEsn9ufvdXV0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Errormessage: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ) WHERE pr.regions_id ='1' AND pl.name LIKE '%cola%' AND pr.stock>0 AND' at line 1<br>0 : <b>/home/treegroup/domains/treegroup.com.tr/public_html/demo/bring365/api/search.php</b> (line : <b>33</b>) / select <br>1 : <b>/home/treegroup/domains/treegroup.com.tr/public_html/demo/bring365/class/dbFunctions.php</b> (line : <b>201</b>) / query <br>{"status":false,"message":"\u00dcr\u00fcn Bulunamad\u0131."} |