摘要: //// AppDelegate.m// TabBarControllerDemo//// Created by qianfeng on 15/9/22.// Copyright (c) 2015年 qianfeng. All rights reserved.//#import "AppDelega... 阅读全文
posted @ 2015-09-25 22:00 阿凡提王 阅读(301) 评论(0) 推荐(0) 编辑
摘要: #define COLOR_VALUE arc4random() % 256 /255.0//宏定义@interface FirstViewController (){ NSTimer *_timer;}//定义一个事件的属性[self createBackCorlor];//方法的调用#pragm... 阅读全文
posted @ 2015-09-25 20:49 阿凡提王 阅读(282) 评论(0) 推荐(0) 编辑
摘要: //// ViewController.m// UIScollView//// Created by hehe on 15/9/25.// Copyright (c) 2015年 wang.hehe. All rights reserved.//#import "ViewController.h"#... 阅读全文
posted @ 2015-09-25 19:17 阿凡提王 阅读(220) 评论(0) 推荐(0) 编辑
摘要: //// nextViewController.m#import "nextViewController.h"#import "my.h"@interface nextViewController ()@end@implementation nextViewController- (void)vie... 阅读全文
posted @ 2015-09-25 07:41 阿凡提王 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 1.在第一个页面进入第二个页面可以使用莫泰的方式在第一个页面包含第二个页面的头文件#import "FirstViewController.h"#import "ViewController.h",上面的红色是要进入的第二个界面,黑色是本界面2.在第一个界面的某个按键响应中写下边代码 //准备切换界... 阅读全文
posted @ 2015-09-24 22:26 阿凡提王 阅读(143) 评论(0) 推荐(0) 编辑
摘要: //tint color是设置你选中的那个tabBar的颜色,默认是蓝色,点击是设置的红色 vc.tabBar.tintColor = [UIColor redColor]; //bar tint color vc.tabBar.barTintColor = [UIColor orangeCol... 阅读全文
posted @ 2015-09-22 20:33 阿凡提王 阅读(259) 评论(0) 推荐(0) 编辑
摘要: //// ViewController.m// imageview添加按钮//// Created by hehe on 15/9/22.// Copyright (c) 2015年 wang.hehe. All rights reserved.//#import "ViewController.h... 阅读全文
posted @ 2015-09-22 18:28 阿凡提王 阅读(321) 评论(0) 推荐(0) 编辑
摘要: //// MyviewViewController.h// XibDemo//// Created by hehe on 15/9/21.// Copyright (c) 2015年 wang.hehe. All rights reserved.//#import @interface Myview... 阅读全文
posted @ 2015-09-21 22:11 阿凡提王 阅读(149) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"#define width_screen self.view.bounds.size.width#define height_screen self.view.bounds.size.height@interface ViewController ... 阅读全文
posted @ 2015-09-21 22:02 阿凡提王 阅读(110) 评论(0) 推荐(0) 编辑
摘要: //// ViewController.h// UIAlertViewAndUIActionSheet//// Created by hehe on 15/9/21.// Copyright (c) 2015年 wang.hehe. All rights reserved.//#import @in... 阅读全文
posted @ 2015-09-21 21:58 阿凡提王 阅读(133) 评论(0) 推荐(0) 编辑