Three Word Chant: Occupy, summer 2012

Page 53

The Rise and Fall of /53

else if (section==SECTION_ID_NOTES) return @""; return @""; } - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { // Return the number of rows in the section. if (section==SECTION_ID_GENERAL_INFO) return 3; else if (section==SECTION_ID_NOTES) return 1; else if (section==SECTION_ID_EMAIL) return 1; return 0; } (float)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { if (indexPath.section==SECTION_ID_NOTES) return 100; else return 45; } - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; int style = UITableViewCellStyleDefault; if (indexPath.section == SECTION_ID_GENERAL_INFO) style = TABLE_CELL_STYLE_FORM; else if (indexPath.section == SECTION_ID_NOTES) style = TABLE_CELL_STYLE_NOTE; else if (indexPath.section == SECTION_ID_EMAIL) style = TABLE_CELL_STYLE_BUTTON; LOTableViewCell *cell = nil;//[tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[LOTableViewCell alloc] initWithStyle:style reuseIdentifier:CellIdentifier]; cell.object = media; } if (indexPath.section==SECTION_ID_GENERAL_INFO) { if (indexPath.row==0) {


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.