关键字 HE 的文章


由   YIem   撰写于    浏览:3403  评论:0
// 辅助视图// cell.accessoryType = UITableViewCellAccessoryDetailButton;// 感叹号 // cell.accessoryType = UITableViewCellAccessoryCheckmark;// 对号 // cell.accessoryType = UITableV[...]

由   YIem   撰写于    浏览:2840  评论:0
// tableView结构 // tableHeaderView + tableView + tableFooterView // tableView -> section + row // section -> header + row + footer

由   YIem   撰写于    浏览:2889  评论:0
// tableView的头部脚部区域 // 头 (只有高度起作用) UIView *header = [[UIView alloc]initWithFrame:CGRectMake(100, 100, 100, 100)]; header.backgroundColor = [UIColor redColor]; tableView.tableH[...]

由   YIem   撰写于    浏览:3202  评论:0
// 高度控制// 行高(CGFloat)tableView:(UITableView )tableView heightForRowAtIndexPath:(NSIndexPath )indexPath{return 100;}// 头部高度(CGFloat)tableView:(UITableView *)tableView heightFor[...]

由   YIem   撰写于    浏览:2927  评论:0
// 自定义头部区域(UIView )tableView:(UITableView )tableView viewForHeaderInSection:(NSInteger)section{UIView *header = [[UIView alloc]initWithFrame:CGRectMake(100, 100, 100, 100)];he[...]

由   YIem   撰写于    浏览:2924  评论:0
// 分区头名称(NSString )tableView:(UITableView )tableView titleForHeaderInSection:(NSInteger)section{return @"头头头";}// 分区脚部名称(NSString )tableView:(UITableView )tableView titleForFo[...]

由   YIem   撰写于    浏览:3213  评论:0
// 分割线样式tableV.separatorStyle = UITableViewCellSeparatorStyleSingleLine; // 分割线颜色 tableV.separatorColor = [UIColor greenColor]; // 行高 - 如果使用协议方法设置行高, 此句无效 tableV.rowHeight = 200;

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

由   YIem   撰写于    浏览:3152  评论:0
#import "ViewController.h" @interface ViewController ()@property (nonatomic, retain) UILabel *label;@end@implementation ViewController(void)dealloc{[_label release];[...]

由   YIem   撰写于    浏览:4443  评论:0
SetViewController *setVC = [[SetViewController alloc]init];// 注意坐标设置 setVC.view.frame = CGRectMake(-150, 0, 150, self.view.frame.size.height); [self addChildViewControll[...]

由   YIem   撰写于    浏览:3274  评论:0
VC.m#import "ActivityDetailViewController.h"import "ActivityDetailView.h"@interface ActivityDetailViewController ()@end@implementation ActivityDetailViewController

由   YIem   撰写于    浏览:3752  评论:0
// 按钮 button UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem]; button.frame = CGRectMake(100, 300, 50, 30);// button.backgroundColor = [UIColor redColor];//[...]

由   YIem   撰写于    浏览:4231  评论:0
//***// 文本输入框 - YIem的博客 // command + k 调出键盘 // command + shift + k 关联物理键盘 UITextField *field = [[UITextField alloc] initWithFrame:CGRectMake(label.frame.origin.x, label.frame.[...]

由   YIem   撰写于    浏览:3692  评论:0
UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(50, 50, 300, 50)]; // 设置文字内容 label.text = @"YIem 的博客"; // 设置文字颜色 label.textColor = [UIColor greenColor]; /[...]

由   YIem   撰写于    浏览:3799  评论:0
iOS键盘回收-按return键盘回收-或者跳入下一个UITextFielf#import "ViewController.h" @interface ViewController ()<UITextFieldDelegate>@property (nonatomic, retain) UITextField *fi[...]

由   YIem   撰写于    浏览:2941  评论:0
iOS-植物大战僵尸-UIVIew-UIImageView-#import "ViewController.h" @interface ViewController ()@end@implementation ViewController(void)viewDidLoad {[super viewDidLoad];// Do a[...]

由   YIem   撰写于    浏览:3719  评论:0
iOS-TOM猫-汤姆猫动画播放-UIImageVIew#import "ViewController.h" @interface ViewController ()@property (nonatomic, retain) UIImageView *img;@end@implementation ViewController([...]

由   YIem   撰写于    浏览:3830  评论:0
iOS-UI-View-实现七种颜色的--跑马灯效果-使用for循环铺view forin遍历颜色写在ViewController.m

由   YIem   撰写于    浏览:4711  评论: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   撰写于    浏览:3921  评论:0
首先,“雷电OS”是不是一个OS。答案:不是。雷电OS是一堆预置应用的合集。---下面更新了一些好玩的证据------另外大家可以随意转载-----转载没问题,但是请不要在标题中同时出现小米(MIUI)和雷电,我只是澄清事实,无意为这两家公司引战。雷电的受害用户不止小米,只是这次360针对小米进行推广,所以显得小米用户比较多。雷电OS安装完成后,除[...]

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

由   YIem   撰写于    浏览:3010  评论: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   撰写于    浏览:3815  评论:0
//// AppDelegate.h// UI14_Xib//// Created by YIem on 15/12/24.// Copyright © 2015年 www.yiem.net YIem博客. All rights reserved.//import <UIKit/UIKit.h>@interface AppDel[...]

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

由   YIem   撰写于    浏览:4395  评论: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[...]