摘要: iOS页面间传值的方式(Delegate/NSNotification/Block/NSUserDefault/单例)作者:wangtao169447发布日期:2014-07-18 19:06:24我来说两句(0)4Tag标签:页面方式iOS页面间传值的方式(NSUserDefault/Delega... 阅读全文
posted @ 2015-03-11 21:38 mengxiangtong22 阅读(415) 评论(0) 推荐(0) 编辑
摘要: 在开发ios应用的时候,我们会经常遇到一个常见的问题:在不过分耦合的前提下,controllers间怎么进行通信。在IOS应用不断的出现三种模式来实现这种通信:1.委托delegation;2.通知中心Notification Center;3.键值观察key value observing... 阅读全文
posted @ 2015-03-11 21:37 mengxiangtong22 阅读(478) 评论(0) 推荐(0) 编辑
摘要: //冒泡 核心代码 for (int i = 0; i b) { [array exchangeObjectAtIndex:i withObjectAtIndex:j]; } } } 阅读全文
posted @ 2015-03-11 19:54 mengxiangtong22 阅读(555) 评论(0) 推荐(0) 编辑
摘要: API documentation is available atCocoaDocs - SDWebImageUsing UIImageView+WebCache category with UITableViewJust #import the UIImageView+WebCache.h hea... 阅读全文
posted @ 2015-03-11 17:42 mengxiangtong22 阅读(830) 评论(0) 推荐(0) 编辑
摘要: // .假设有一个字符串aabcad,请写一段程序,去掉字符串中不相邻的重复字符串,既上述字符串处理之后的输出结果为:aabcd NSMutableString *str = [[NSMutableString alloc] initWithFormat: @"aabcad"]; ... 阅读全文
posted @ 2015-03-11 15:53 mengxiangtong22 阅读(167) 评论(0) 推荐(0) 编辑