YIem`s Blog -心比天高命比纸薄-链接找不到的请在站内搜索内容！ - 通讯录
//// RootViewController.m// UI6_作业1//// Created by YIem on 15/12/14.// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.//import "RootViewController.h"import "LTView.h"import "CellViewTableViewCell.h"@interface RootViewController ()@end@implementation RootViewController(void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. self.view.backgroundColor = [UIColor whiteColor];// Phone // 滚 UIScrollView *phone = [[UIScrollView alloc]initWithFrame:self.view.frame]; phone.backgroundColor = [UIColor grayColor]; [self.view addSubview:phone];phone.contentSize = CGSizeMake(0, self.view.frame.size.height * 1.5); [phone release]; // LTView *s1 = [[LTView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 110)]; s1.backgroundColor = [UIColor whiteColor]; s1.label1.text = @"卞一"; s1.label2.text = @"1879414****"; s1.label3.text = @""; s1.img.image = [UIImage imageNamed:@"900738"]; // 添加到phone视图/// 在phone视图滚动 [phone addSubview:s1]; [...]
//// RootViewController.m// Phone2//// Created by YIem on 15/12/12.// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.//import "RootViewController.h"import "TLView.h"@interface RootViewController ()@end@implementation RootViewController(void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. self.view.backgroundColor = [UIColor whiteColor]; // UISegmentedControl *seg = [[UISegmentedControl alloc]initWithItems:@[@"AII", @"Missed"]]; seg.frame = CGRectMake(100, 25, 150, 40); seg.center = CGPointMake(self.view.center.x, 50); [self.view addSubview:seg]; seg.backgroundColor = [UIColor whiteColor]; seg.selectedSegmentIndex = 0; [seg release]; // UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem]; button.frame = CGRectMake(0, 590,self.view.frame.size.width, 70); [self.view addSubview:button]; [button setBackgroundImage:[UIImage imageNamed:@"12.jpg"] forState:UIControlStateNormal]; button.self.layer.cornerRadius = 35;[...]