摘要: 在上的代码中 UIview都在一个页面 要是每一个view对应一个页面 操作每一个view代码都在viewcontroller里面就会很乱,那么我们就将view重新做一下 创建想要的页面继承与view 如 diyigeview *view1; diergeview *view2... 阅读全文
posted @ 2015-12-01 16:46 代佳宏 阅读(150) 评论(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 代佳宏 阅读(305) 评论(1) 推荐(0) 编辑
摘要: 第一个当报cannot find interface declaration for 'UIImage或者use of undeclared identifier 'UIImage'时我们要在报错页面导入这个框架 '#import 第二个错误 在AFSecurityPolicy.m这个类中,会报... 阅读全文
posted @ 2015-11-17 11:36 代佳宏 阅读(565) 评论(1) 推荐(0) 编辑
摘要: //初始化textfield并设置位置及大小UITextField *text = [[UITextField alloc]initWithFrame:CGRectMake(20, 20, 130, 30)];//设置边框样式,只有设置了才会显示边框样式text.borderStyle = UITe 阅读全文
posted @ 2015-11-09 09:37 代佳宏 阅读(188) 评论(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 代佳宏 阅读(313) 评论(0) 推荐(0) 编辑
摘要: typedef NS_ENUM(NSInteger, UITableViewCellAccessoryType) { UITableViewCellAccessoryNone, // 不显示任何图标 UITableViewCellAccessoryDisclosureIndicator, // 跳转 阅读全文
posted @ 2015-05-17 12:05 代佳宏 阅读(413) 评论(0) 推荐(0) 编辑
摘要: 在开发iphone的应用时基本上都要用到UITableView,这里讲解一下UITableView的使用方法及代理的调用情况UITableView使用详解- (void)viewDidLoad{ [super viewDidLoad]; //初始化数据 NSArray *array... 阅读全文
posted @ 2015-05-15 16:45 代佳宏 阅读(170) 评论(0) 推荐(0) 编辑
摘要: - (void)viewDidLoad { [super viewDidLoad]; [self buttonswitch]; [self buttonslider]; } -(void)buttonswitch { // UIswitch self.view.backgroundColor = [ 阅读全文
posted @ 2015-05-07 15:22 代佳宏 阅读(112) 评论(0) 推荐(0) 编辑
摘要: //按钮UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect ];//按钮形状 button.frame = CGRectMake(50, 200, 50, 50);//大小 [button addTarg... 阅读全文
posted @ 2015-05-07 14:48 代佳宏 阅读(142) 评论(0) 推荐(0) 编辑
摘要: ViewController.h中的代码如下:#import @interface ViewController : UIViewController @end ViewController.m中的详细代码:- (void)viewDidLoad { [super vie... 阅读全文
posted @ 2015-04-29 10:53 代佳宏 阅读(118) 评论(0) 推荐(0) 编辑