2015年2月22日

摘要: CGRect myRect = CGRectMake(5,10,200,100)将[myText drawInRect:myRect withFont:myFont lineBreakMode:UILineBreakModeWordWrap alignment:UITextAlignmentRigh... 阅读全文
posted @ 2015-02-22 10:32 奶杨 阅读(530) 评论(0) 推荐(0) 编辑
摘要: 解决方法:NSString *myText = @"xxxxx";将CGSizemySize =[myTextsizeWithFont:myFontconstrainedToSize:CGSizeMake(200,100)];改写成:CGSizemySize = [myTextboundingRec... 阅读全文
posted @ 2015-02-22 10:31 奶杨 阅读(844) 评论(0) 推荐(0) 编辑
摘要: 解决方法:将NSStreamEventErrorOccurred 替换为 NSStreamStatusError. 阅读全文
posted @ 2015-02-22 10:29 奶杨 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 重启Xcode可能会正确运行,或者用以下方法:步骤1:Xcode目录Window->Organizer,将工程名文件删除。步骤2:Xcode目录Xcode->Open Developer Tool->iOS Simulator,弹出模拟器后,菜单上"iOS模拟器"选项->还原内容和设置,退出模拟器。... 阅读全文
posted @ 2015-02-22 10:28 奶杨 阅读(111) 评论(0) 推荐(0) 编辑

导航