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