Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 05-11-2011, 06:12 AM   #1 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 19
Vixy is on a distinguished road
Default NSArrayM frameLength termination

I have a normal tableview of size 30 cells and it all breaks apart when I use cell above 25 I pushview and when I return it terminates, if there are no more than 25 cells all is perfect??? why?? help help

here is what it look like

[__NSArrayM frameLength]: unrecognized selector sent to instance 0x4b659c0


- (UITableViewCell *)tableViewUITableView *)tableView cellForRowAtIndexPathNSIndexPath *)indexPath {

static NSString *CellIdentifier = @"bodyCellIdentifier";


NSMutableArray *podnaslovi=[[NSMutableArray alloc]init];

NSMutableArray *naslovi = [[NSMutableArray alloc] init];

[naslovi addObject:@"B"];
... and so on for 29 more

[podnaslovi addObject:@"CCC"];
.... and other 29


UITableViewCell *cell = [tableview dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier] autorelease];
}


// cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton;
cell.textLabel.text = [naslovi objectAtIndex:indexPath.row];
cell.detailTextLabel.text = [podnaslovi objectAtIndex:indexPath.row];

[naslovi release];
[podnaslovi release];
return cell;
Vixy is offline   Reply With Quote
Old 05-11-2011, 07:33 AM   #2 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 19
Vixy is on a distinguished road
Default

f.... me

it wasn't tableview, i was releasing nsindex variable in pushedview, this was the problem, funny i don't have release but there is no leak according to leak tool, aren't we supposed to release all varaibles (i removed property(nonat..) as well) ?? enigma for beginner (thats me)
Vixy is offline   Reply With Quote
Reply

Bookmarks

Tags
framelength, nsmutablearray, tableview

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 354
7 members and 347 guests
doffing81, dre, iOS.Lover, Kirkout, MikaelBartlett, oztemel, PlutoPrime
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,663
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, LezB44
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:01 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0