Skip to content

Instantly share code, notes, and snippets.

@cemck cemck/.m
Last active May 14, 2019

Embed
What would you like to do?
UIView *newView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 35)];
newView.backgroundColor=[UIColor redColor];
UITextView *mytext = [[UITextView alloc] initWithFrame:CGRectMake(5.0, 0.0, 100.0, 28.0)];
mytext.backgroundColor = [UIColor clearColor];
mytext.textColor = [UIColor blackColor];
mytext.editable = NO;
mytext.font = [UIFont systemFontOfSize:15];
mytext.text = @"Mytext";
mytext.scrollEnabled=NO;
[newView addSubview:mytext];
[self.view addSubview:newView];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.