Referring Image number 1: In ios 6 and 5, the label get display properly in UItable.
Referring Image number 2: In IOS 7, the label do not get display in UItable.
Referring Image number 3: In iOS 7, the label get display on click of cell in UItable.
Below is the code used to write cell in UItable.
-(UILabel *)createLabel:(UILabel *)sender1 :(int)x :(int)y :(NSString *)title :(int)size :(int)swidth :(int)ht { sender1 = [[UILabel alloc] initWithFrame:CGRectMake(x, y, swidth, ht)]; sender1.text = title; [sender1 setTextColor:[UIColor whiteColor]]; [sender1 setBackgroundColor:[UIColor clearColor]]; [sender1 setFont:[UIFont systemFontOfSize:size]]; sender1.numberOfLines = 2; //7 sender1.lineBreakMode = NSLineBreakByWordWrapping; sender1.contentMode = UIControlContentVerticalAlignmentCenter; return sender1; }
I am sure it is not simulator issue.
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- back button text does not change
- iOS (objective-c) compression_decode_buffer() retu
- how to find the index position of the ARRAY Where
相关文章
- 现在使用swift开发ios应用好还是swift?
- TCC __TCCAccessRequest_block_invoke
- xcode 4 garbage collection removed?
- Unable to process app at this time due to a genera
- How can I add media attachments to my push notific
- didBeginContact:(SKPhysicsContact *)contact not in
- Custom Marker performance iOS, crash with result “
- ios7 new pan gesture to go back in navigation stac
In Ios 6 and 5 it use to set black but in Ios 7 it is set to White.
[cell setBackgroundColor:[UIColor blackColor]]; is the solution.