摘要:
代码: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( 阅读全文
摘要:
1、iphone选取本地照片方法UIImagePickerController *imagePickController = [[UIImagePickerController alloc]init];imagePickController.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;//picker.allowsEditing = YES;imagePickController.delegate = self;[self presentModalViewController:imagePickController a. 阅读全文
摘要:
实现共享很简单,在info.plist文件中Add row,“Application supports iTunes files sharing”,值为true就OK; 阅读全文