YIem`s Blog -心比天高命比纸薄-链接找不到的请在站内搜索内容!

2015-12-15-iOS UI 实现通讯记录

//
// 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


//
TLView *yi = [[TLView alloc]initWithFrame:CGRectMake(0, 100, self.view.frame.size.width, 90)];
yi.label1.text = @"卞一";
yi.label2.text = @"187941459**";
yi.label3.text = @"星期六";
yi.label4.text = @"";
yi.img.image = [UIImage imageNamed:@"eat"];
[self.view addSubview:yi];
[yi release];
//
TLView *er = [[TLView alloc]initWithFrame:CGRectMake(0, 180, self.view.frame.size.width, 90)];
er.label1.text = @"YIem";
er.label2.text = @"188426740**";
er.label3.text = @"星期五";
er.label4.text = @"1";
er.img.image = [UIImage imageNamed:@"eat"];
[self.view addSubview:er];
[er release];
//
TLView *san = [[TLView alloc]initWithFrame:CGRectMake(0, 270, self.view.frame.size.width, 90)];
san.label1.text = @"YI";
san.label2.text = @"10101010101";
san.label3.text = @"星期六";
san.img.image = [UIImage imageNamed:@"eat"];
[self.view addSubview:san];
[san release];
//
TLView *si = [[TLView alloc]initWithFrame:CGRectMake(0, 360, self.view.frame.size.width, 90)];
si.label1.text = @"Bian";
si.label2.text = @"110110110";
si.label3.text = @"星期五";
si.img.image = [UIImage imageNamed:@"eat"];
[self.view addSubview:si];
[si release];
//
TLView *wu = [[TLView alloc]initWithFrame:CGRectMake(0, 450, self.view.frame.size.width, 90)];
wu.label1.text = @"吴晋儒";
wu.label2.text = @"1884268258";
wu.label3.text = @"星期六";
wu.img.image = [UIImage imageNamed:@"eat"];
[self.view addSubview:wu];
[wu release];




}

/*

pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation

*/

@end



//
// TLView.h
// Phone2
//
// Created by YIem on 15/12/12.
// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.
//

import <UIKit/UIKit.h>

@interface TLView : UIView
@property (nonatomic, retain)UILabel *label1;
@property (nonatomic, retain)UILabel *label2;
@property (nonatomic, retain)UILabel *label3;
@property (nonatomic, retain)UILabel *label4;
@property (nonatomic, retain)UIImageView *img;

@end


//
// TLView.m
// Phone2
//
// Created by YIem on 15/12/12.
// Copyright (c) 2015年 www.yiem.net YIem博客. All rights reserved.
//

import "TLView.h"

@implementation TLView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.

*/

@end

当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »