I have a UILabel and it should display the text how much long it would be .So gone for the concept of UILineBreakModeWordWrap but it is not working for me ..If the text doesnot fit in that line then it should automatically should appear in the next line
UILabel *lblMyLable = [[[UILabel alloc] initWithFrame:CGRectMake(10,118, 600, 40)]autorelease];
lblMyLable.lineBreakMode = UILineBreakModeWordWrap;
lblMyLable.numberOfLines = 0;//Dynamic
lblMyLable.tag=1301;
lblMyLable.backgroundColor = [UIColor clearColor];
lblMyLable.text = [NSString stringwithformat:@"%@ %@ %@ %@ %@ %@",id,name,address,city,state,country];
[self.view addSubview:lblMyLable];
But here after displaying the id ,name and address the remaining part is cut ..I couldnot see
it ..I am searching in such a way that if doesnot fit one line then it should automatically jump to next line starting from where it was stopped in first line.How can i do it?
1 Answer