摘要: UIImage图片转成base64字符串: UIImage *_originImage = [UIImage imageNamed:@"full_playlist_hl.png"]; NSData *_data = UIImageJPEGRepresentation(_image, 1.0f); N 阅读全文
posted @ 2016-06-06 16:17 超级马力 阅读(1006) 评论(0) 推荐(0) 编辑
摘要: 1 // NSNumberFormatter *numberFormatter = [[NSNumberFormatter alloc] init]; 2 // [numberFormatter setNumberStyle:NSNumberFormatterDecimalStyle]; 3 // 4 // NSString *t... 阅读全文
posted @ 2016-06-06 16:16 超级马力 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 将NavigationBar设置透明(仅将指定视图控制器进行透明处理),步骤如下:1.在视图控制器的头文件中实现UINavigationControllerDelegate,例如:@interface PicturePreviewViewController : UIViewController<U 阅读全文
posted @ 2016-06-06 16:05 超级马力 阅读(477) 评论(0) 推荐(0) 编辑
摘要: 1 #import "AppDelegate.h" 2 3 4 5 @implementation AppDelegate 6 7 - (void)dealloc 8 { 9 [_page release]; 10 [_window release]; 11 [_viewController release... 阅读全文
posted @ 2016-06-06 16:03 超级马力 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 1 UIWindow * statusWindow = [[UIWindow alloc] initWithFrame:[UIApplication sharedApplication].statusBarFrame]; 2 [statusWindow setWindowLevel:UIWindowLevelStatusBar + 1]; 3 [statusWindow setBa... 阅读全文
posted @ 2016-06-06 16:02 超级马力 阅读(473) 评论(0) 推荐(0) 编辑
摘要: ASIHTTPRequest类库简介和使用说明 官方网站: http://allseeing-i.com/ASIHTTPRequest/ 。可以从上面下载到最新源码,以及获取到相关的资料。 使用iOS SDK中的HTTP网络请求API,相当的复杂,调用很繁琐,ASIHTTPRequest就是一个对C 阅读全文
posted @ 2016-06-06 15:50 超级马力 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 1 - (void)viewDidLoad 2 { 3 [super viewDidLoad]; 4 // Do any additional setup after loading the view. 5 self.title = @"第二页"; 6 self.view.backgroundColor = [UIColor ora... 阅读全文
posted @ 2016-06-06 15:49 超级马力 阅读(578) 评论(0) 推荐(0) 编辑
摘要: UIPickerView为用户提供了选择器功能,使用户以更好的体验方式实现数据的选择,如图: UIPickerView控件的使用方法:(创建好根视图:MainViewController) 实现部分: 阅读全文
posted @ 2016-06-06 15:48 超级马力 阅读(443) 评论(0) 推荐(0) 编辑
摘要: 懒加载三大优势: 1,延迟内存占用 2,增加类的灵活性 3, 都是可重建的资源 可以置空 再次创建 阅读全文
posted @ 2016-06-06 15:43 超级马力 阅读(344) 评论(0) 推荐(0) 编辑
摘要: 1 - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath 2 3 { 4 5 // 在tableView的协议方法中制定 每个cell的高度 6 7 8 9 UIImage *i... 阅读全文
posted @ 2016-06-06 15:42 超级马力 阅读(1176) 评论(0) 推荐(0) 编辑