【发布时间】:2013-01-08 13:43:57
【问题描述】:
这两者之间是否有区别,哪一个可能更好或更快或有任何优势:
UIAlertView * alertBox = [[UIAlertView alloc] initWithTitle:@"Title"];
还有:
UIAlertView * alertBox = [[UIAlertView alloc] init];
alertBox.title = @"Title";
(当然,它们都显示相同的结果!)
【问题讨论】:
-
最佳微优化
-
@peko 我没办法,我只是想通过尽可能详细地从一开始就开始优化来防止未来的错误或缓慢。
标签: objective-c alertview