ios - sectioned table view returning blank table -


I found examples of code to create table view with alphabet sections and I tried to optimize for my tableview. Have done

However, now the simulator is returning blank table.

I have made a mistake, anybody is pointing to the mistake? I do not help in every change. Thanks

#import "RCViewController.h" @interface RCViewController () @end @implementationRCViewController @ synthesis content = _content; @Synthesis sectionData; @section name synthesize; - (NSArray *) Material {NSArray * Term = [NSArray arrayWithObjects: @ "T", @ "Club", @ "Green", @ "Put", Zero]; NSArray * Sorted word = [word sorted by user: @sillector (case insensitive comparison);); NSString * currentLetter = @ ""; For (nssstring * string in the sorted word) {if (string.length & gt; 0) {NSString * letter = [string substringToIndex: 1]; If (! [Extra characters extractor: current letter]] [[section name namebiejet: letter]; CurrentLetter = letter; NSMutableArray * single sign = [NSMutableArray array]; [SectionData addObject: oneSection]; [[Section data final object] add object: string]; }}} Return _ content; } - (NSInteger) numberOfSectionsInTableView: (UITableView *) table view {return section name count; } - (NSInteger) Table view: (UITableView *) table view numberofrose insignia: (NSInteger) section {return [[sectionData objectAtIndex: section] calculation]; } - (NSString *) TableView: (UITableView *) Table View Title ForHeaderInSection: (NSInteger) section {return [sectionNames objectAtIndex: section]; } - (NSArray *) section INDEXTitlesForTableView: (UITableView *) tableview {return section names; } - (UITableViewCell *) TableView: (UITableView *) Table View CellForOutPath: (NSIndexPath *) Index Pathway {Fixed NSString * simpleTableIdentifier = @ "simpleTableIdentifier"; UITableViewCell * cell = [TablesView decomputer reusableWelcome Identifier: SimpleTable Identifier]; If (cell == blue) {cell = [[UTTable power ALL] Initivith style: UITTWUSSEL STYLE Default REUE IDEFFER: SimpleTable Identifier]; Cell.textLabel.text = [[auto. SectionData object atindex: indexpath.section] objectAtindex: indexpath.ro]; } Return cell; } - (zero) viewDidoadload [[Super Viewedload]; // Setup an additional after loading the view, usually from a nib } - (zero) did risiv memorialisation [[super davidimmemi warning]; // Any resource settlement which can be reproduced. } @end

There are things that are not optimal with your code but the table is empty What could be the reason that you are never creating sectional and section names, and therefore it does not return a table with any section name or section data: try it:

  - (void ViewDidload {[Super Viewedload]; // Setup an additional after loading the view, usually from a nib NSArray * word = [NSArray arrayWithObjects: @ "T", @ "club", @ "green", @ "put", zero]; NSArray * Sorted word = [word sorted by user: @sillector (case insensitive comparison);); NSString * currentLetter = @ ""; For (nssstring * string in the sorted word) {if (string.length & gt; 0) {NSString * letter = [string substringToIndex: 1]; If (! [Extra characters extractor: current letter]] [[section name namebiejet: letter]; CurrentLetter = letter; NSMutableArray * single sign = [NSMutableArray array]; [SectionData addObject: oneSection]; [[Section data final object] add object: string]; }}}}  

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -