Last active
June 9, 2019 00:21
-
-
Save cemck/fb37cb22b4887171d1f21dfa6643cc12 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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