06 2016 档案
摘要:新升级了xcode7 以前的项目都报了这个错,原因是原来的静态库都不包括 bitcode 这个东西,xcode默认包含了这个库。 至于什么是bitcode,请看这里: http://blog.csdn.net/soindy/article/details/48518717 现在我们把bitcode关
阅读全文
摘要:QQ会话中总是希望添加一行就向上滚动总是显示最新的消息 NSIndexPath *lastIndexPath = [NSIndexPath indexPathForRow:_messageArray.count-1 inSection:0];记录最下面的行的位置 [self.QQTalkTableV
阅读全文
摘要:单一控制器的横竖屏切换 if ([[UIDevice currentDevice] respondsToSelector:@selector(setOrientation:)]) { SEL selector = NSSelectorFromString(@"setOrientation:"); N
阅读全文
摘要:int i=100; float f=2.34; NSNumber *n1=[NSNumber numberWithInt:i]; NSNumber *n2=[NSNumber numberWithFloat:f] 将NSNumber类型转换成基本类型 i=[n1 intvalue] f=[n2 f
阅读全文
摘要:更新操作返回一个BOOL值,YES表示操作成功,NO表示执行过程遇到错误,可以通过-lastErrorMessage和-lastErrorCode查看错误信息。使用executeUpdate:方法执行更新: 示例 文/elevenchen(简书作者)原文链接:http://www.jianshu.c
阅读全文
摘要:self.allowsSelection = NO;
阅读全文