摘要: 代码:CGSize size = CGSizeMake(_lblContent.frame.size.width,10000); //设置宽高,其中高为允许的最大高度CGSize labelsize = [_lblContent.text sizeWithFont:_lblContent.font constrainedToSize:size lineBreakMode:UILineBreakModeWordWrap]; //通过文本_lblContent.text的字数,字体的大小,限制的高度大小以及模式来获取label的大小[_lblContent setFrame:CGRectMake( 阅读全文
posted @ 2012-09-11 16:43 七夜小魔军 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 1、iphone选取本地照片方法UIImagePickerController *imagePickController = [[UIImagePickerController alloc]init];imagePickController.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;//picker.allowsEditing = YES;imagePickController.delegate = self;[self presentModalViewController:imagePickController a. 阅读全文
posted @ 2012-09-11 16:37 七夜小魔军 阅读(507) 评论(0) 推荐(0) 编辑
摘要: 实现共享很简单,在info.plist文件中Add row,“Application supports iTunes files sharing”,值为true就OK; 阅读全文
posted @ 2012-09-11 16:27 七夜小魔军 阅读(160) 评论(0) 推荐(0) 编辑