Viewfile.m

IVIS

Jump to: navigation, 찾기

[편집] viewfile.m


#import "viewfile.h"


@implementation viewfile
@synthesize tex;


- (id)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        // Initialization code
		tex = [[UITextView alloc]initWithFrame:CGRectMake(70,50,70,50)];
		[tex setText:@"Hello World!!"]; 
		[self addSubview:tex];
    }
    return self;
}


- (void)drawRect:(CGRect)rect {
    // Drawing code
}


- (void)dealloc {
    [super dealloc];
}


@end