Skip to content

Instantly share code, notes, and snippets.



Last active Jun 9, 2019
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";
[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