Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 07-04-2009, 09:56 AM   #3 (permalink)
FlyingDiver
Former NeXTStep Developer
 
Join Date: Mar 2009
Posts: 997
Default

buttonWithType returns an auto-released object. Since you didn't alloc that object, you should not be trying to release it. You can get rid of both the retain on that line, and the release later in your code.

joe
FlyingDiver is offline   Reply With Quote
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 24,163
Threads: 38,936
Posts: 170,829
Top Poster: smasher (2,565)
Welcome to our newest member, iphonenikku
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:16 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.