关键字 value 的文章


由   YIem   撰写于    浏览:3947  评论:0
/********UIPageControl 页码********/ UIPageControl *pcr = [[UIPageControl alloc] initWithFrame:CGRectMake(100, 500, 200, 50)]; // 注意属性 // 注意, 如果不设置页码个数 控件不显示 pcr.numberOfPages[...]

由   YIem   撰写于    浏览:4536  评论:0
UISlide 滑动条UISlider *slide = [[UISlider alloc] initWithFrame:CGRectMake(100, 400, 300, 10)];// 重要属性 // 最小值 slide.minimumValue = 0; // 最大值 slide.maximumValue = 10; // 设置进度位置 sl[...]

由   YIem   撰写于    浏览:3232  评论:0
/****** UISwith 开关******/ // frame只有坐标生效, 大小无效由系统默认指定 UISwitch *swt = [[UISwitch alloc] initWithFrame:CGRectMake(100, 200, 0, 0)]; // 注意触发方式 [swt addTarget:self action:@sele[...]

由   YIem   撰写于    浏览:3300  评论:0
iOS-UI-创建3个UISlider-分别设置划过区域的颜⾊分别为红,黄,蓝-通过控制三个slider改变self.view的背景颜⾊#import "ViewController.h"@interface ViewController ()@property (nonatomic, retain) UISlider *red;@property[...]

由   YIem   撰写于    浏览:3772  评论:0
/******* 假夜间模式 *********/ // 开关 UISwitch *sw = [[UISwitch alloc] initWithFrame:CGRectMake(100, 200, 100, 100)]; [sw addTarget:self action:@selector(swAction:) forControlEvents[...]

由   YIem   撰写于    浏览:3975  评论:0
self.seg = [[UISegmentedControl alloc] initWithItems:[NSArray arrayWithObjects:@"界面1", @"界面2", @"界面3", nil]];self.seg.frame = CGRectMake(100, 100, 200, 30); // 起始选中状态 self.seg[...]

由   YIem   撰写于    浏览:4761  评论:0
Objective-C考试- 蓝鸥3G-OC考试题 ※ 选择题(共40题,每题2分) 1、NSString *str = @“lanou”; [str retain]; [str autorelease];
此时str的引用计数是________。 答案:(D) A、0 B、1 C、2 D、以上[...]

由   YIem   撰写于    浏览:3637  评论:0
/* 完成以下需求 需求:1、定义 联系人类Contact。实例变量:姓名(拼⾳, ⾸字母大写)、性别、电话号码、住址、分组名称、年龄。 ⽅法:自定义初始化方法(姓名、电话号码)、显示联系⼈信息(重写description方法, 打印所有成员变量)。 2、在main.m中定义字典,分组管理所有联系人。分组名 为26个大写的英文字母。 3、可以[...]

由   YIem   撰写于    浏览:3051  评论:0
.main.m文件/* 定义Student类 1、属性有age,name,gender; 2、age使⽤用assign,name使⽤用retain,gender使⽤用copy; 3、重写age、name、gender的setter和getter⽅方法。 */if 0 Student *stu = [[Stude[...]

由   YIem   撰写于    浏览:2738  评论:0
///************* 不同类型转换 ****** // 整型转NSString int a = 3; NSString *str = [NSString stringWithFormat:@"%d", a]; NSLog(@"%@", str); // NS[...]

由   YIem   撰写于    浏览:4445  评论:0
//// AppDelegate.h// UI13_练习//// Created by YIem on 15/12/23.// Copyright © 2015年 www.yiem.net YIem博客. All rights reserved.//import <UIKit/UIKit.h>@interface AppDele[...]

由   YIem   撰写于    浏览:3251  评论:0
//// AppDelegate.h// UI12_限时练习//// Created by Marry W. on 15/12/22.// Copyright © 2015年 www.lanou3g.com 蓝鸥科技. All rights reserved.//import <UIKit/UIKit.h>@interface [...]

由   YIem   撰写于    浏览:3926  评论:0
//// AppDelegate.h// UI11_练习2//// Created by YIem on 15/12/21.// Copyright © 2015年 www.yiem.net YIem博客. All rights reserved.//import <UIKit/UIKit.h>@interface AppDel[...]

由   YIem   撰写于    浏览:3565  评论:0
//// RootViewController.h// UI9_UITableView练习//// Created by YIem on 15/12/17.// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.//import <UIKit/UIKit.h>[...]

由   YIem   撰写于    浏览:4049  评论:0
// RootViewController.m// **UI8_轮播图//**// Created by YIem on 15/12/16.// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.//import "RootViewController.h"@inter[...]

由   YIem   撰写于    浏览:3569  评论:0
//// AppDelegate.h// UI8_协议传值//// Created by YIem on 15/12/16.// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.//import <UIKit/UIKit.h>@interface AppD[...]

由   YIem   撰写于    浏览:4973  评论:0
//// RootViewController.m// Phone//// Created by YIem on 15/12/12.// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.//import "RootViewController.h"import "LT[...]

由   YIem   撰写于    浏览:3147  评论:0
//// RootViewController.m// UI6_UIScrollView//// Created by YIem on 15/12/14.// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.//import "RootViewController.h[...]

由   YIem   撰写于    浏览:6052  评论:0
//// RootViewController.m// UI5_UIControl//// Created by YIem on 15/12/11.// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.//import "RootViewController.h"//[...]

由   YIem   撰写于    浏览:4084  评论:0
Objective-C(新)Objective-C考试 ※ 选择题(共80题,每题1分)1、不会立刻使引用计数器改变的是:答案:(C) A、release B、alloc C、autorelease D、retain2、OC中布尔(BOOL)类型的变量的值只有:答案:(B) A、1/0 B、YES/NO C、true/false D、1/-13[...]

由   YIem   撰写于    浏览:3408  评论:0
//// main.m// OC_7遍历//// Created by YIem on 15/12/2.// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.//import <Foundation/Foundation.h>import "Model.h[...]

由   YIem   撰写于    浏览:4809  评论:0
//// main.m// OC6_省市区//// Created by YIem on 15/12/1.// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.//import <Foundation/Foundation.h>import "Model.[...]

由   YIem   撰写于    浏览:3772  评论:0
//// main.m// OC6_练习//// Created by YIem. on 12/1/15.// Copyright (c) 2015 www.yiem.net YIem博客. All rights reserved.//import <Foundation/Foundation.h>import "Book.h"[...]

由   YIem   撰写于    浏览:3261  评论:0
//// main.m// OC5_NSNumber_NSValue//// Created by YIem. on 11/30/15.// Copyright (c) 2015 www.yiem.net YIem博客. All rights reserved.//import <Foundation/Foundation.h>[...]

由   YIem   撰写于    浏览:3535  评论:0
//// main.m// OC5_数组_字典//// Created by YIem. on 11/30/15.// Copyright (c) 2015 www.yiem.net YIem博客. All rights reserved.//import <Foundation/Foundation.h>int main(in[...]