Skip to content

Instantly share code, notes, and snippets.

View conscientiousness's full-sized avatar
🧑‍💻
Coding Mode

Jesse Lin conscientiousness

🧑‍💻
Coding Mode
View GitHub Profile
// 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(_:))

誠徵:iOS開發人員(發佈日期:2016/07/25)

Imgur

職位:全職(Remote)

  • 職務: iOS Developer

責任:協助我們打造東南亞及亞太地區最棒的新聞應用程式!

@conscientiousness
conscientiousness / tableViewCellWithXib
Last active December 7, 2015 15:09
dequeueReusableCellWithIdentifier
//=====(1)=====
@interface ViewController ()<UITableViewDataSource,UITableViewDelegate>
{
UINib * nib;
}
@end
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
if (nib == nil) {