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 08-11-2010, 10:26 PM   #26 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

Do you know what you are doing with the releasing, or are you just randomly adding releases?

Perhaps you should post some more code.
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Old 08-11-2010, 10:26 PM   #27 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 28
thomas02 is on a distinguished road
Default

Quote:
Originally Posted by BrianSlick View Post
Do you know what you are doing with the releasing, or are you just randomly adding releases?

Perhaps you should post some more code.
Im releasing the arrays under dealloc.
thomas02 is offline   Reply With Quote
Old 08-11-2010, 10:27 PM   #28 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

That doesn't mean it is the correct thing to do. Or, it could be correct thing to do, but you are using the arrays incorrectly elsewhere.
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Old 08-11-2010, 10:29 PM   #29 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 28
thomas02 is on a distinguished road
Default

Quote:
Originally Posted by BrianSlick View Post
That doesn't mean it is the correct thing to do. Or, it could be correct thing to do, but you are using the arrays incorrectly elsewhere.
Here is my code


- (void)viewDidLoad {
[super viewDidLoad];

fastballs = [[[NSArray alloc] initWithObjects:@"Four-seam Fastball",@"Two-seam Fastball",@"Cutter",nil]retain];

[self setTitle:@"Fastball"];




}

- (void)dealloc {
[fastballs release];
[super dealloc];
}

I use the array for the setText and # of rows and navigation if that helps
thomas02 is offline   Reply With Quote
Old 08-11-2010, 10:30 PM   #30 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

You're still leaking. Do you have that defined as a property?
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Old 08-11-2010, 10:31 PM   #31 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 28
thomas02 is on a distinguished road
Default

Quote:
Originally Posted by BrianSlick View Post
You're still leaking. Do you have that defined as a property?
the array defined?
thomas02 is offline   Reply With Quote
Old 08-11-2010, 10:32 PM   #32 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

Ok, this is getting boring. Post your .h.
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Old 08-11-2010, 10:34 PM   #33 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 28
thomas02 is on a distinguished road
Default

Quote:
Originally Posted by BrianSlick View Post
Ok, this is getting boring. Post your .h.
sorry im new to this
heres the .h


#import <UIKit/UIKit.h>
@class Fourseamer;
@class Twoseamer;
@class Cutter;

@interface Fastball : UITableViewController {

NSArray *fastballs;

}

@end
thomas02 is offline   Reply With Quote
Old 08-11-2010, 10:35 PM   #34 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

Ok, you are not using a property. You should be. Go read the properties link in my signature.
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Old 08-11-2010, 10:36 PM   #35 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 28
thomas02 is on a distinguished road
Default

Quote:
Originally Posted by BrianSlick View Post
Ok, you are not using a property. You should be. Go read the properties link in my signature.
ok thanks will read now
thomas02 is offline   Reply With Quote
Old 08-11-2010, 10:44 PM   #36 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 28
thomas02 is on a distinguished road
Default

Quote:
Originally Posted by thomas02 View Post
ok thanks will read now
ok I see I am not getting any array warnings anymore.
thomas02 is offline   Reply With Quote
Reply

Bookmarks

Tags
memory, navigation, view

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
6 members and 348 guests
bignoggins, Chickenrig, givensur, linkmx, Objective Zero, PlutoPrime
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,657
Threads: 94,118
Posts: 402,894
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jenniead38
Powered by vBadvanced CMPS v3.1.0

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