摘要: NSString *url = @"MyUrl://"; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:url]];在另一个应用程序中按照上边的操作添加MyUrl并运行,就可以跳转了 阅读全文
posted @ 2015-09-30 15:06 阿凡提王 阅读(409) 评论(0) 推荐(0) 编辑
摘要: 隐藏状态栏- (BOOL)prefersStatusBarHidden{ return YES;} 阅读全文
posted @ 2015-09-30 13:34 阿凡提王 阅读(88) 评论(0) 推荐(0) 编辑
摘要: /* /*1.设置导航栏@“联系人”2.创建数据源:a:aa aaa aaaa3.完成Table view data source4.段头段尾设置ABCDEF...5.设置索引6.创建搜索栏目,创建一个新的视图控制器给搜索栏,让它显示搜索结果,放在表头位置上7.搜索栏更新协议*/*/--------... 阅读全文
posted @ 2015-09-28 20:32 阿凡提王 阅读(157) 评论(0) 推荐(0) 编辑
摘要: /*1.创建一个导航栏2.写一个数据源3.创建搜索栏a.让tableView的表头等于搜索栏b.把搜索栏控制器用搜索栏初始化self.sdc = [[UISearchDisplayController alloc] initWithSearchBar:self.searchBar contentsC... 阅读全文
posted @ 2015-09-28 19:33 阿凡提王 阅读(97) 评论(0) 推荐(0) 编辑
摘要: /*1.定制导航栏2.创建数据元a .分配内存和初始化b.创建三个段数组section1,section2,section3c.加入数据源数组中dataArray3.写两个dataSource的协议方法:设置行,宽和设置cell中内容4.在设置段头的方法中把按钮加入段头,记得设置段头的高度5.UIT... 阅读全文
posted @ 2015-09-28 19:09 阿凡提王 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 1.创建导航栏2.创建数据源3.在按钮的编辑响应事件方法中让tableview可以多选可以和可以编辑4.在按钮删除的响应事件方法中,对选择的数组进行排序后删除,然后设置回不可多选和编辑//.h文件中继承UITableViewController// MyTableViewController.h//... 阅读全文
posted @ 2015-09-28 18:49 阿凡提王 阅读(372) 评论(0) 推荐(0) 编辑
摘要: 1.普通设置 self.window = [[UIWindow alloc] initWithFrame: [[UIScreen mainScreen]bounds]]; self.window.backgroundColor = [UIColor orangeColor]; ViewControl... 阅读全文
posted @ 2015-09-28 17:30 阿凡提王 阅读(167) 评论(0) 推荐(0) 编辑
摘要: // button.titleLabel.textAlignment = NSTextAlignmentLeft; 这句无效 button.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft; ... 阅读全文
posted @ 2015-09-28 13:01 阿凡提王 阅读(662) 评论(0) 推荐(0) 编辑
摘要: [UIView animateWithDuration:1.0 animations:^{ label.alpha=1.0; } completion:^(BOOL finished) { [UIView animateWithDuration:1.0 animations:^{ label.a... 阅读全文
posted @ 2015-09-25 23:53 阿凡提王 阅读(195) 评论(0) 推荐(0) 编辑
摘要: - (UIImage *)clipImage: (UIImage *)image inRect: (CGRect) rect{ //返回image中rect范围内的图片 CGImageRef imageRef = CGImageCreateWithImageInRect(image.CGImage,... 阅读全文
posted @ 2015-09-25 23:41 阿凡提王 阅读(386) 评论(0) 推荐(0) 编辑