关键字 me 的文章


由   YIem   撰写于    浏览:4281  评论:0


由   YIem   撰写于    浏览:4254  评论:0

由   YIem   撰写于    浏览:3263  评论:0

由   YIem   撰写于    浏览:4094  评论:0

由   YIem   撰写于    浏览:3301  评论:0

由   YIem   撰写于    浏览:2698  评论:0
// 解析数据 为n 第一种 解决方法(判断)if (![string hasPrefix:@"\n"]) { [stu setValue:string forKey:self.elementNameStr]; }//// 解析数据 为\n 第二种 解决方法(设置解析值(\n) 为空) self.elemen[...]

由   YIem   撰写于    浏览:3334  评论:0

由   YIem   撰写于    浏览:3839  评论:0

由   YIem   撰写于    浏览:2877  评论:0

由   YIem   撰写于    浏览:3709  评论:0

由   YIem   撰写于    浏览:3605  评论:0
iOS-UI-UITabBarControllerDelegate-标签视图控制器@interface AppDelegate ()<UITabBarControllerDelegate> @end@implementation AppDelegate(void)dealloc{[_window release]; [super dea[...]

由   YIem   撰写于    浏览:2943  评论:0
import "RootViewController.h"import "Student.h"@interface RootViewController ()<UITableViewDataSource, UITableViewDelegate>@property (nonatomic, retain) NSMutableDiction[...]

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

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

由   YIem   撰写于    浏览:3140  评论:0
// 背景图片 [navigation.navigationBar setBackgroundImage:[UIImage imageNamed:@"10425.jpg"] forBarMetrics:UIBarMetricsDefault]; ![ // 背景图片[navigation.navigationBar set[...]

由   YIem   撰写于    浏览:2600  评论:0
// 前景色 navigation.navigationBar.barTintColor = [UIColor cyanColor]; // 背景色// navigation.navigationBar.backgroundColor = [UIColor cyanColor];// 边框色 navigation.navigation[...]

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

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

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

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

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

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

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

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