IOS控件:分歧解决其(UILabel 和 IBAction)
摘要:#import @interface demo7_dayViewController : UIViewController { // 用来显示程序结果 IBOutlet UILabel *result;}// 属性声明@property(nonatomic, retain) UILabel *result;// 同意或反对的值-(IBAction) agreeDisagree;// 左中右的值-(IBAction) leftCenterRight;// 从1-100其中之一的值-(IBAction) oneToHundred;// 左轮枪的值-(IBAction) ressianR...
阅读全文
posted @
2013-08-24 21:55
大米稀饭
阅读(409)
推荐(0) 编辑
IOS控件:长度单位换算(UITextField,IBAction,委托事件touchesBegan)
摘要:#import @interface demo7_dayViewController : UIViewController { IBOutlet UITextField *chi; // 尺 IBOutlet UITextField *meter; // 米 IBOutlet UITextField *feet; // 英尺}// 此处 对每个文本框声明程序属性@property (nonatomic, retain) UITextField *chi;@property (nonatomic, retain) UITextField *meter;@pro...
阅读全文
posted @
2013-08-24 15:26
大米稀饭
阅读(615)
推荐(0) 编辑
IOS控件:计算文字长度(UITextField,UILabel对象 和 IBAction)
摘要:#import // UIViewController类为程序提供了基本的视图管理模块@interface NavControllerViewController : UIViewController { // 此处建立标签显示文字;把所需显示的文字标签告诉Interface Builder IBOutlet UILabel *label; // 文本框;把所需显示的文字标签告诉Interface Builder IBOutlet UITextField *textField;}// @property 声明程序的属性@property(nonatomic, retai...
阅读全文
posted @
2013-08-24 14:02
大米稀饭
阅读(998)
推荐(0) 编辑
IOS控件:WebView移动网站导航
摘要:#import // 模板默认引入包含程序需要使用“类”的框架,即 Foundation.h头文件,使它包含在程序中#import // UIViewController类为程序提供了基本的视图管理模块。@interface NavControllerViewController : UIViewController { // 把所需要显示的视图告诉Interface Builder IBOutlet UIWebView *webView;}// 此@property声明程序的属性,加入在@interface中指定的相同webView;@property(nonatomic, re...
阅读全文
posted @
2013-08-24 13:01
大米稀饭
阅读(389)
推荐(0) 编辑