xcode - Outlet in a Static Table Cell Causes EXC_BAD_ACCESS on load -


i creating simple static table 2 sections, 2 cells in each section. table view controller (tvc) subclassed.

within each of table cells have stepper control, , and label. using allow updating though ibaction stepper, setting property in tvc. @ same time label updated through it's outlet show current value.

the outlet defined in @interface section of "tvc.m" file normal using standard ib tools.

on run breaks on thread 1 level under uiapplicationmain in named _0 obj_loadweakretained_ , error is:

thread 1: exc_bad_access(code -2, address = 0x1da7cc0.

any idea may doing incorrectly? there has done differently when adding views tablecells , setting outlets them? here's code - nothing unusual.

#import "advancedtvc.h"  @interface advancedtvc ()  - (ibaction)stepperchanged:(uistepper *)sender; - (ibaction)switchtoggled:(uiswitch *)sender;   @end  @implementation advancedtvc  - (ibaction)stepperchanged:(uistepper *)sender { } - (ibaction)switchtoggled:(uiswitch *)sender { }    - (id)initwithstyle:(uitableviewstyle)style {     self = [super initwithstyle:style];     if (self) {         // custom initialization     }     return self; }  - (void)viewdidload {     [super viewdidload];  }   - (uitableviewcell *)tableview:(uitableview *)tableview cellforrowatindexpath:(nsindexpath *)indexpath {     uitableviewcell *cell = [super tableview:tableview cellforrowatindexpath:indexpath];      // configure cell...      return cell; }   #pragma mark - table view delegate  - (void)tableview:(uitableview *)tableview didselectrowatindexpath:(nsindexpath *)indexpath { }  @end 


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -