摘要: 让两个界面相互转化、 需要在实现里面加入-(IBAction)UNwind:(UIStoryboardSegue*)sender{}注:里面的UNwind只是一个名称 可以随意更改 阅读全文
posted @ 2016-01-21 14:03 专注博客园三十年 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 1 main 方法的UIApplicationMain 创建应用程序代理对象(AppDelegate)对象2应用程序代理对象(AppDelegate)对象 负责应用程序时间(激活、 进入后台 、进入前台 、终止)的处理3 根据应用程序的配置加载相对应的StoryBoard 在StoryBoard 中... 阅读全文
posted @ 2016-01-20 22:44 专注博客园三十年 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 1 在strorybord界面点击选中的text 在右侧第三个控制栏发现有一个属性为keyboard的把它从原来的 fefault调整为 Number pad就OK了、2 在clearbutton的控制栏从原来的Never appears更改为 appears while editing 就可以了、... 阅读全文
posted @ 2016-01-20 21:14 专注博客园三十年 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 在.h文件当中UIViewController后面加上在.m文件当中加入实现部分 self.username.delegate=self;self.Password.delegate=self; 阅读全文
posted @ 2016-01-20 17:57 专注博客园三十年 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 在.h文件当中先进行声明@property (strong ,nonatomic)UILabel *label;@property (strong ,nonatomic)UIButton *button;在.m文件当中进行实现self.label.text=@"HELLO WORLD";self.... 阅读全文
posted @ 2016-01-20 17:38 专注博客园三十年 阅读(280) 评论(0) 推荐(0) 编辑
摘要: //// ViewController.m// 119textSix//// Created by FuHeXiang on 16/1/19.// Copyright (c) 2016年 XinZhongZhi. All rights reserved.//#import "ViewControll... 阅读全文
posted @ 2016-01-19 17:59 专注博客园三十年 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-01-18 14:07 专注博客园三十年 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 设置可变传参的初始化方法 -(instancetype) initwithHour :(int)h and Minute :(int)m and second :(int) s; 然后在实现部分 -(instancetype) initwithHour :(int)h and Mi... 阅读全文
posted @ 2016-01-18 09:36 专注博客园三十年 阅读(536) 评论(0) 推荐(0) 编辑
摘要: @interface Time:NSObjct{ int hour ; int minute; int second;}-(int) hour;//get 方法 :命名规则 返回类型就是成员变量的类型 方法就是成员的名字-(void)setHour :(int )newHour;//set方法... 阅读全文
posted @ 2016-01-17 18:55 专注博客园三十年 阅读(879) 评论(0) 推荐(0) 编辑
摘要: 1 常用关键字self代表调用类自己的方法 表示接受信息的独享是类自身super 代表父类2 使用关键字访问属性使用get set 方法来外部调用方法 在声明里面加入@property 在实现的部分加入@synthesize {//这是两个成员变量double speed ;int wheels ... 阅读全文
posted @ 2016-01-17 13:49 专注博客园三十年 阅读(394) 评论(0) 推荐(0) 编辑