摘要: 第一步点击获取头像按钮 下面为按钮执行方法 判断设备是否具有照像机功能有的话执行前者方法没有执行后者方法 UIActionSheet *actionSheet; if([UIImagePickerController isSourceTy... 阅读全文
posted @ 2015-12-19 11:01 代佳宏 阅读(572) 评论(0) 推荐(0)
摘要: ios 9.0后再用以前的UIAlertAction 已经不行了 被弃用了 改用这种方法了UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"提示"message:@"什么怎么怎么样"... 阅读全文
posted @ 2015-12-02 11:54 代佳宏 阅读(190) 评论(0) 推荐(0)
摘要: 在上的代码中 UIview都在一个页面 要是每一个view对应一个页面 操作每一个view代码都在viewcontroller里面就会很乱,那么我们就将view重新做一下 创建想要的页面继承与view 如 diyigeview *view1; diergeview *view2... 阅读全文
posted @ 2015-12-01 16:46 代佳宏 阅读(158) 评论(0) 推荐(0)
摘要: #import "ViewController.h"#define kWidthOfScreen self.view.frame.size.width#define kHeightOfScreen self.view.frame.size.height@interface ViewControlle... 阅读全文
posted @ 2015-12-01 16:09 代佳宏 阅读(315) 评论(1) 推荐(0)
摘要: 第一个当报cannot find interface declaration for 'UIImage或者use of undeclared identifier 'UIImage'时我们要在报错页面导入这个框架 '#import 第二个错误 在AFSecurityPolicy.m这个类中,会报... 阅读全文
posted @ 2015-11-17 11:36 代佳宏 阅读(580) 评论(1) 推荐(0)
摘要: //初始化textfield并设置位置及大小UITextField *text = [[UITextField alloc]initWithFrame:CGRectMake(20, 20, 130, 30)];//设置边框样式,只有设置了才会显示边框样式text.borderStyle = UITe 阅读全文
posted @ 2015-11-09 09:37 代佳宏 阅读(190) 评论(0) 推荐(0)
摘要: 01.IOS基础01.iOS开发快速入门教程http://pan.baidu.com/s/1kT3ScOf链接: http://pan.baidu.com/s/1kTKheAF 密码: yycm02.苹果开发零基础入门教程http://pan.baidu.com/s/1dDfHL77链接: http... 阅读全文
posted @ 2015-11-06 10:40 代佳宏 阅读(328) 评论(0) 推荐(0)
摘要: typedef NS_ENUM(NSInteger, UITableViewCellAccessoryType) { UITableViewCellAccessoryNone, // 不显示任何图标 UITableViewCellAccessoryDisclosureIndicator, // 跳转 阅读全文
posted @ 2015-05-17 12:05 代佳宏 阅读(437) 评论(0) 推荐(0)
摘要: 在开发iphone的应用时基本上都要用到UITableView,这里讲解一下UITableView的使用方法及代理的调用情况UITableView使用详解- (void)viewDidLoad{ [super viewDidLoad]; //初始化数据 NSArray *array... 阅读全文
posted @ 2015-05-15 16:45 代佳宏 阅读(175) 评论(0) 推荐(0)
摘要: - (void)viewDidLoad { [super viewDidLoad]; [self buttonswitch]; [self buttonslider]; } -(void)buttonswitch { // UIswitch self.view.backgroundColor = [ 阅读全文
posted @ 2015-05-07 15:22 代佳宏 阅读(120) 评论(0) 推荐(0)