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

View Single Post
Old 01-31-2010, 09:07 PM   #1 (permalink)
axiixc
Registered Member
 
Join Date: Jun 2009
Posts: 13
axiixc is on a distinguished road
Question ERR_BAD_ACCESS and NSArray weirdness

I tried a few things and I'm stumped by this. In a UIView object I have an NSArray object declared in my @interface, and set in - (void)awakeFromNib. The UIView is a data source for its UITableView, and to get the number of rows I'm calling the count method, which causes an ERR_BAD_ACCESS. Here is the weird part, if I do
Code:
NSLog(@"%@", [self.streamsArray count]);
I get an ERR_BAD_ACCESS, but if I call
Code:
NSLog(@"%@", self.streamsArray);
everything prints out fine. So why would it be that calling the count method doesn't work?
axiixc is offline   Reply With Quote
 

» Advertisements
» Online Users: 557
14 members and 543 guests
daunmi, givensur, headkaze, iconomania, iekei, jbro, Joseph262, kasumar, linkmx, samichaudry, sunlite, Thompson22, w0rldsell3r, yvonneolivia
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,443
Threads: 94,027
Posts: 402,592
Top Poster: BrianSlick (7,978)
Welcome to our newest member, Joseph262
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:12 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.