I am new in iOS and I am facing problem regarding to create UILabel dynamically. I need to change its hight and the Y position according to data from webservice.
My code is like this
NSMutableArray *remarkarray =[[NSMutableArray alloc] init];
NSString *RemarkString=[NSString stringWithFormat:@"%@",[remarkarray objectAtIndex:0]];
You can do it very easily by declaring two labels in Storyboard.
Here are steps..
Drag two UILabels in your viewController and select first one and set constraints like below image. Adding Constraint tow first label
Select second label and add following constraints.
Now u can set text dynamically from code.. [adding text from code] [output here...]