iphone - viewing tableViewLines on background of custom UIView -


I have a view controller that contains a tableview and a custom loading UIView that shows a loading message and a spinner while the table view Loading of data is a red background in custom UIView that I can see, but I can still see the line of table view, how can I display custom UIV vid without seeing table view lines on the background I am

  @information loading website @ synthesis spinner; - (id) initWithFrame: (CGRect) frame {if (self = [super initWithFrame: frame]) {// initial code [self setuser interface enabled: no]; [Self setback color: [UIColor blueColor]]; // spinner spinner = [[UIActivindicator Vive Allok] Initvivitivity Indicator Style: UIActivindIndicator ViewTilWite Large]; [Spinner setcenter: CG pointmake (320/2, 150)]; [Self add sublueview: spinner]; [Spinner start-up]; // title label UILabel * titleLabel = [[UILabel alloc] init]; TitleLabel.text = @ "Loading ..."; TitleLabel.font = [UIFont boldSystemFontOfSize: 18]; TitleLabel.lineBreakMode = UILineBreakModeWordWrap; TitleLabel.backgroundColor = [UIColor clear collar]; TitleLabel.textColor = [UIColor blackColor]; TitleLabel.textAlignment = UITextAlignmentLeft; CGFloat height = [titleLabel.text sizeWithFont: titleLabel.font Taboo ToSize: CGSizeMake (300, 1500) Lineback MOD: UILineBreakModeWordWrap]. height; [Title label setframe: CGRactam (120, 180, 100, height)]; [Add self add] title: title]; [Title label release]; } Healthy return; } - (zero) direct: (CGRact) rect {} - (zero) Delok [[Super Delooc]; [Spinner release]; } @end  

You can set lines to "off" Start the process, set them transparent.

  // Setting a transparent table view. Separator color = [UIColor clearColor];  

And when you are loading UIView, change the color for one that you want.

  // desired color table set view .separatorColor = [UIColor gray color];  

Another option is to set the hide table view when you do not have data to display, and when you see the first or more row, you can hide the table view Is not set for.

I hope this will help you!

Cheers,
VFN


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -