職位:全職(Remote)
- 職務: iOS Developer
責任:協助我們打造東南亞及亞太地區最棒的新聞應用程式!
| // in self class -> MyVC | |
| myBtn.addTarget(self, action: .selfSelector, forControlEvents: .TouchUpInside) | |
| // in singleton class -> mainVC | |
| mainVCBtn.addTarget(SingletonClass.shared().mainVC, action: .addTopicSelector, forControlEvents: .TouchUpInside) | |
| private extension Selector { | |
| static let selfSelector = #selector(MyVC.btnDidPressed(_:)) | |
| static let addTopicSelector = #selector(SingletonClass.shared().mainVC.newTopicBtnPressed(_:)) |
| //=====(1)===== | |
| @interface ViewController ()<UITableViewDataSource,UITableViewDelegate> | |
| { | |
| UINib * nib; | |
| } | |
| @end | |
| -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ | |
| if (nib == nil) { |