Skip to content

Instantly share code, notes, and snippets.

@cemck
Last active June 9, 2019 00:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cemck/fb37cb22b4887171d1f21dfa6643cc12 to your computer and use it in GitHub Desktop.
Save cemck/fb37cb22b4887171d1f21dfa6643cc12 to your computer and use it in GitHub Desktop.
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