上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 36 下一页
摘要: 1 down vote favoriteI'm adding the MKStoreKit to my app and I'm getting a warning, Method possibly missing a [super dealloc] call. I know the library has been converted for the new ARC.However, I'm not ready to convert my whole app to ARC.How should I proceed?Is it safe to use the ignore 阅读全文
posted @ 2013-12-26 10:29 如来藏 阅读(1159) 评论(0) 推荐(0) 编辑
摘要: UIImageView *tmp = [[UIImageView alloc]initWithFrame:CGRectMake(5.0f, 5.0f, 40.0f, 40.0f)]; tmp.image = self.friendRecord.appIcon; [tmp setContentMode:UIViewContentModeScaleAspectFit];按照一定比例缩放图片后需要注意使用UIViewContentModeScaleAspectFit才可以正常显示否则总是铺满全屏显示的 阅读全文
posted @ 2013-12-25 16:25 如来藏 阅读(1572) 评论(0) 推荐(0) 编辑
摘要: You cannot add nil to an NSMutableArray, and you will raise an exception if you try to.There's NSNull, though:NSNull*myNull =[NSNull null];[myMutableArray addObject:myNull];nsmutablearray不能添加nil可以是nsnull,所以在向nsmutablearray中添加string时候需要判断一下string是否是nil的然后再添加 阅读全文
posted @ 2013-12-25 16:20 如来藏 阅读(707) 评论(0) 推荐(0) 编辑
摘要: Did you clean the build folder by pressing command while the cursor is on the clean option? Are you sure you don't have two instances of the app installed? Try turning your iPhone off and on.. Sounds dumb but has worked for me in the pastLion is known to have this issues with Xcode. I solved thi 阅读全文
posted @ 2013-12-23 21:35 如来藏 阅读(371) 评论(0) 推荐(0) 编辑
摘要: 注意:要想实时获取键盘的高度,比如当前如果是中文那么就会增高的。那么需要使用 UIKeyboardFrameEndUserInfoKey 而不是 UIKeyboardFrameBeginUserInfoKey,后者将获取到的是上次的高度,而前者是键盘动画完成后的最终高度。The following code (sorry for the length) displays an odd behavior under iOS 4.3 (maybe others version too). In this example, there are three UITextFields that have 阅读全文
posted @ 2013-12-20 14:02 如来藏 阅读(3930) 评论(0) 推荐(0) 编辑
摘要: ---恢复内容开始---https://developer.apple.com/library/ios/qa/qa1480/_index.html- (NSDate *)dateFromString:(NSString *)string { if (!string) { return nil; } NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; [formatter setDateFormat : @"yyyy'-'MM'-'dd'T'HH':'m 阅读全文
posted @ 2013-12-20 13:58 如来藏 阅读(480) 评论(0) 推荐(0) 编辑
摘要: https://developer.apple.com/library/ios/qa/qa1480/_index.html- (NSDate *)dateFromString:(NSString *)string { if (!string) { return nil; } NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; [formatter setDateFormat : @"yyyy'-'MM'-'dd'T'HH':'mm':' 阅读全文
posted @ 2013-11-29 14:04 如来藏 阅读(582) 评论(0) 推荐(0) 编辑
摘要: -1 down vote favoriteI am using the 'analyze' tool in xcode to check for potential leakages in my app.I am getting the following warning as a result.How do I resolve the potential leak shown above? "self.answerArray" is just an array I declared in my header file解决 :You've calle 阅读全文
posted @ 2013-11-29 10:17 如来藏 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 这个在运行模拟器时候出现了错误6.0crash,6.1和其他没有这个问题,然后reset content and settings后模拟器再运行就正常了。 阅读全文
posted @ 2013-11-27 13:14 如来藏 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 自动调整文字的高度:ios 2.0 ~ 7.0以下:UILabel *orgnizationLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, self.cellImageView.frame.size.height + 5, self.cellImageView.frame.size.width, 0)]; self.nameLabel = orgnizationLabel; self.nameLabel.text = @"富力桃园幼儿园管理员"; self.nameLabel.textAlignment = NSTex 阅读全文
posted @ 2013-11-27 10:55 如来藏 阅读(401) 评论(0) 推荐(0) 编辑
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 36 下一页