摘要: 编写IOS代码的时候,避免不了要在不同的页面中,进行数据通讯。截止到IOS6.0 有两种方法可以使用:假设有两个页面A,B要进行通讯,A页面要把数据传到B页面1.在A中:[[NSNotificationCenter defaultCenter] postNotificationName:(NSString *)aName object:(id)anObject userInfo:(NSDictionary *)aUserInfo]; //向整个应用推送消息在B中:[[NSNotificationCenter defaultCenter] addObserver:(id)observer se. 阅读全文
posted @ 2013-01-16 17:49 念苍生 阅读(281) 评论(0) 推荐(0) 编辑