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