一个消除if语句的例子
摘要:
// 一个按钮点击事件,判断点击按钮是那一个显示出他的信息- (IBAction)buttonPressed:(id)sender { if (sender == self.leftButton) { NSLog(@"%@", self.leftButton.currentTit... 阅读全文
posted @ 2014-07-15 19:04 codestyle 阅读(1305) 评论(0) 推荐(0)
增加语言的了解程度可以避免写出愚蠢的代码
2014年7月15日 #
posted @ 2014-07-15 19:04 codestyle 阅读(1305) 评论(0) 推荐(0)