iphone

Differences between Objective-C 2.0 vs. CLR in regards to memory managmenet

I've been learning to develop applications on the cocoa touch platform. I've come a long way but one piece that I can't wrap my head around is memory management. I thought I'd take a route of comparison rather than trying to start from scratch. I can't find much on the difference between the CLR (.net) and Objective-C 2.0 so I'm wonder...

How to create a frame and fill it with a segmented control??

I want to create a frame and fill it with a segmented control. How would i do this??? ...

iphone: masking an image using paths

How do you mask an image using paths? What Im trying to do is draw a line using CGContextStrokePath and show only those parts of a CGLayerRef which are under it. Also, how do you erase only those parts of the CGLayerRef which are under it? Thanks. ...

how to compare a NSURLconnection http response data with a string value in iphone???

hi......i am new in iphone programming......i want to do an activation module which will send a http request with a PIN numbr and then read the response...if the response is "OK" it opens up with a main menu...........the problem is that i am recieving the response as "OK" but i am unable to compare it with a NSString @"OK"............so...

Web site that collects and discusses Cocoa Touch design patterns?

Does anyone know of one? If it doesn't exist, anyone interested in collaborating to create it? ...

Using UIAlertView in a manner similar to Windows' MessageBox()?

I'm new to the iPhone and I would like to be able to use UIAlertView in a manner similar to the Windows MessageBox() or the MessageDlg() in Delphi. For example, I have a method that needs to ask the user for confirmation on something, and proceed based on their response. E.g. (pseudocode): -(void)doSomething { [doStep1]; [doStep2]...

Xcode Error

i am getting this error "_CGRectZero", referenced from: _CGRectZero$non_lazy_ptr in RootViewController.o _CGRectZero$non_lazy_ptr in SecondViewController.o ld: symbol(s) not found collect2: ld returned 1 exit status Build failed (1 error) could someone tell me a solution to solve this? ...

main Differenece Between View-Based and Window-Based Application template?

What Is The Main Difference Between a View-Based Application Template And Window-Based Application Template In Iphone? ...

Other interface elements in a UITableViewController, cells not deselecting

Hi I'm struggling to create a table view controller that has anything more than just a table view in it. I don't want to use a footer view, as I'd like a toolbar at the bottom of the page, and there are cases where there aren't enough rows in the table to put the footer at the bottom of the screen. The other issue with this is that the...

Adding UITabBar

Hi, I have a UINavigationBar based application - only a one navigation bar that is handling all the work with views in my app. And I want to have a tab bar at a bottom part of every view that will take the user to whatever view he would like to go. What is the easiest way to add a tab bar to an application? Thank you in advance, Ilya....

What cell phone has the widest potential market for software?

I developed a flashcard program a while back for learning Japanese. I've been considering porting it to a cell-phone. What is a good target platfrom? I'm thinking about iPhone, HTC Touch HD (system software: Windows Mobile) or a Nokia (system software: Symbian). Since I know a bit of JavaME, something that runs that would also be cool. ...

iphone 2.x sdk - reference to a viewController inside another viewController showing up as null

Hi, I'm trying to give a newly created instance of a custom picker view controller a reference to another viewController like so (this is inside of a selector from a ponceViewController instance that is called after a tableView row is tapped)... - (IBAction)rowTapped:(id)sender { TimerPickerViewController *viewController = [[TimerPic...

iPhone SDK 3.0 beta 4 broken, Internal Error

Final Edit: This problem is solved, after I downgraded to SDK for iPhone 2.2, then deleted all the files in the Crash Logs in the Organizer window (then upgrade back to 3.0 beta 4). Apparently there were too many of Crash Logs associated with my iPhone (like 300+). Thanks you guys for insights! Original problem: After I update my iPhone...

Hide UITabBar?

Hi, In my app I have a tab bar. And in some views I as well have a toolbar. So when I come to those views with a toolbar it looks ugly - two bars at the bottom of the view. I thought that it would be a best solution to hide a tab bar when entering those particular views. But I just couldn't figure out how to do it in a right way. I trie...

Is it possible to use Core Animation to fade out a UIBarButtonItem?

Hey everyone, I'm curious, is it possible to somehow intertwine Core Animation to give a "fade out" of a UIBarButtonItem? I have a tableView which I represent with two different data sources. Once a particular data source gets triggered, I'd like to fade out the current UIToolBar options and fade in new ones. Thanks for pointing me in ...

Question: can the title of my setting differ from the title of my executable/application?

Hi there, I'm developing an application which has a Settings pane, following the AppPrefs sample by Apple. If my application is named AppPrefs, this is the exact name/prompt/ title the Settings application will provide. Is there anyway to make this change? Can my executable somehow be named (for example) Application1 and my Setting...

Question: grouping settings together

Hi, I'm developing a number of application which have a Settings pane, following the AppPrefs sample by Apple. Within the Settings application, my settings appear in the same "group" with other applications. Anyone know of a way to do one of the following: Group all my application settings (e.g. App1 and App2) grouped under one...

How to override -drawrect in UIButton subclass?

HI. I need to write some text over a custom button. So I subclassed UIButton. In -drawrect, I write the text I need. The problem is that the text ends up under the button. After I write my text, UIButton's drawrect goes ahead and draws on top of me. I am not even calling [super drawrect: rect] even though I was anticipating calling...

iPhone development question: Populating table view

I need help, I need to populate a tableview with objects from my array... I may be using some methods from mac code (lol). I just need some help. Here is my header and implementation files, thanks. #import <UIKit/UIKit.h> @interface Chuck_FactsViewController : UIViewController { IBOutlet UITableView *tableView; NSMutableArray *chuckJo...

optimising CGLayer drawRect method

I'm currently using CGContextDrawLayerInRect to draw a CGLayer in drawRect. This is called quite often. Is there any way to lessen the overhead by drawing only that part of the CGLayer which has changed instead of the whole CGLayer in drawRect? -(void)drawRect:(CGRect)rect { CGContextRef currentContext = UIGraphicsGetCurrentContext(...