YIem`s Blog -心比天高命比纸薄-链接找不到的请在站内搜索内容！ - 通讯记录
//// 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;[...]