Believe in your own future, will thank yourself right now Sinner Yun

Sinner_Yun

上一页 1 ··· 7 8 9 10 11 12 13 下一页

2014年3月25日

事件处理和手势

摘要: 事件处理和手势 【视图与UITouch对应的方法】 - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { //获取点击事件 UITouch *t = [touches anyObject]; //如果点击的是图片就把他移 阅读全文

posted @ 2014-03-25 21:17 Sinner_Yun 阅读(298) 评论(0) 推荐(0) 编辑

2014年3月24日

分栏控制器2

摘要: #import "MyTabBarController.h" #import "LoginViewController.h" #import "BViewController.h" #import "FirstViewController.h" #import "DViewController.h" 阅读全文

posted @ 2014-03-24 20:26 Sinner_Yun 阅读(271) 评论(0) 推荐(0) 编辑

分栏控制器

摘要: 分栏控制器UITabBarController ********************************************************** //首先将导航控制器或视图控制器放到数组中controllerArr //创建一个分栏控制器的实例对象UITabBarControll 阅读全文

posted @ 2014-03-24 20:18 Sinner_Yun 阅读(236) 评论(0) 推荐(0) 编辑

2014年3月23日

数据保存

摘要: #import "ViewController.h" #import "CompanyViewController.h" #import "ResultViewController.h" @interface ViewController () { CompanyViewController *_c 阅读全文

posted @ 2014-03-23 20:24 Sinner_Yun 阅读(256) 评论(0) 推荐(0) 编辑

常用小控件

摘要: 常用小控件基础使用 ***************************************** 【UISlider】 //一个滑块控件 //滑块的值 @property(nonatomic) float value; //设置滑块的最小值(默认最小和最大分别是0.0和1.0) @proper 阅读全文

posted @ 2014-03-23 20:02 Sinner_Yun 阅读(368) 评论(0) 推荐(0) 编辑

2014年3月20日

导航

摘要: 【UINavigationController】 导航控制器 步骤 1,初始化 2,push 进入新视图 3,pop 返回 返回到指定视图 //通过导航控制器找到所有的界面 NSArray *controllers =self.navigationController.viewControllers 阅读全文

posted @ 2014-03-20 20:47 Sinner_Yun 阅读(353) 评论(0) 推荐(0) 编辑

人人界面按钮,页面跳转,传值

摘要: OtherViewController *ovc=[[OtherViewController alloc]init]; ovc.navigationItem.title=[nameArr objectAtIndex:sender.tag-100]; [self.navigationController pushViewController:ovc animated:YES]; 阅读全文

posted @ 2014-03-20 20:32 Sinner_Yun 阅读(313) 评论(0) 推荐(0) 编辑

2014年3月19日

TextField

摘要: UITextField文本输入框 【方法】 //背景文字 @property(nonatomic,copy) NSString *placeholder; //正文 @property(nonatomic,copy) NSString *text; //设置文本框的边框风格,可以设置为圆角矩形边框风 阅读全文

posted @ 2014-03-19 21:03 Sinner_Yun 阅读(296) 评论(0) 推荐(0) 编辑

2014年3月18日

image

摘要: UIView升级&UIImageView 【UIView属性及方法】 //@property(nonatomic) CGRect frame; //@property(nonatomic) CGRect bounds; //@property(nonatomic,readonly) UIView * 阅读全文

posted @ 2014-03-18 20:30 Sinner_Yun 阅读(235) 评论(0) 推荐(0) 编辑

2014年3月17日

Button

摘要: //button除了alloc init方法创建以外,系统封装了类方法,在以前非常实用,不过在ios7中这种方法的实用性有些下降了。(因为取消了圆角风格) + (id)buttonWithType:(UIButtonType)buttonType; typedef NS_ENUM(NSInteger 阅读全文

posted @ 2014-03-17 21:28 Sinner_Yun 阅读(276) 评论(0) 推荐(0) 编辑

2014年3月13日

IOS应用程序的生命周期

摘要: //应用程序分类: //ios本地应用程序: 利用iphone软件开发包(SDK)开发的本地应用程序 //web应用程序: 在web中显现的应用程序 //开发环境及工具 //1. xcode :编辑及调试代码文本 //2. interface builder: 可视化UI接口创建工具 //3. in 阅读全文

posted @ 2014-03-13 20:24 Sinner_Yun 阅读(293) 评论(0) 推荐(0) 编辑

2014年3月12日

内存管理

摘要: #import <Foundation/Foundation.h> //.txt //.data //.bss //.heap //.stack //引用计数 //count = 10 //count --; //count = 0 int main(int argc, const char * a 阅读全文

posted @ 2014-03-12 19:13 Sinner_Yun 阅读(238) 评论(0) 推荐(0) 编辑

2014年3月11日

协议与代理

摘要: //协议 //协议双方相互遵守的约定 //劳务合同 文件 卖身协议 就业协议 // //计算机 //http udp tcp mail ftp smb pop usb3.0 usb2.0 usb1.0 spi uart i2c //OC中的协议 //是一组方法的列表 //1. 制定协议: //所有的 阅读全文

posted @ 2014-03-11 20:01 Sinner_Yun 阅读(281) 评论(0) 推荐(0) 编辑

2014年3月9日

文件归档

摘要: #import <Foundation/Foundation.h> //plist //代码方式 // //plist 文件的根节点只能是数组或者字典 //plist 文件只能存储 NSString NSArray NSDictionary //NSData NSDate NSNumber BOOL 阅读全文

posted @ 2014-03-09 19:14 Sinner_Yun 阅读(297) 评论(0) 推荐(0) 编辑

2014年3月6日

文件及目录操作

摘要: #import <Foundation/Foundation.h> int main(int argc, const char * argv[]) { @autoreleasepool { //文件管理器 // NSFileManager *fm1 = [NSFileManager defaultM 阅读全文

posted @ 2014-03-06 22:05 Sinner_Yun 阅读(271) 评论(0) 推荐(0) 编辑

上一页 1 ··· 7 8 9 10 11 12 13 下一页

导航