Wednesday 15 May 2013

iphone - scrollToRowAtIndexPath scroll inside the header section -


When I use indexpath.row = 0, it's working fine and showing below the header

But when I use indexpath.row = 1, the row 1 will move inside the header section of the table view.

Please help me, I must hide the first row.

[alltweettableView scrollToRowAtIndexPath: [NSIndexPath indexPathForRow: 1 insection: 0] atScrollPosition: Animated UITableViewScrollPositionTop: NO]; Text after "

I'm guessing that you have some transparency / transparency (similar to the contact app) with the default table Headers are using and therefore shows through the bottom of the first line.

Take a look at the documentation for the UITableViewDelegate method, and then you can apply that table to the representative of your table view, send a scene with this non-translucent (or transparent) background, and This should prevent the top row from being displayed.

To get started, I want to return it to a custom shape UILBL directly with a white white background and make sure that it should work (because I have not tested it :) < / P>

  // You probably need to fill the frame size yourself / then try something other than the CGRXeroOr. (UITableView *) tableView viewForHeaderInSection: To start (NSInteger (UIView *) tableView - // example (10,2,320,30), then from there #define x 10 #define Y2 #define width 320 #define height 30 ) Section {UILabel * sectionHeader = [[UILabel alloc] initWithFrame: CGRectMake (X, Y, WIDTH, HEIGHT)]; SectionHeader.text = [NSString stringWithFormat: @ "section% d", section]; SectionHeader.background = [UIColor whiteColor]; Return [section header autoreage]; }  

Assuming that works and looks like progress, you might want to prepare a custom view return that is in the form of the next step.


No comments:

Post a Comment