iphone

Quickest route to get up to speed with iPhone development

Am currently reading Cocoa Programming for Mac OS X by Hillegass just to get up to speed on Objective-C and the Development tools. What would be the next best step ? Instructor led course ? Online training? Specific books ? ...

UITableView Custom Scrollbar

How can I create a custom scrollbar for a UITableView? I want to remove the default one that pops up when tracking begins and that disappears when tracking ends. I want, instead, to have one similar to that in a computer program: (a) it's on the right side of the screen and permanently visible; (b) manually scrolling the bar will scroll...

how to associate uicontroller to custom uiview programmatically

Hi, I have a custom UIview which is created diagrammatically. How to associate to it a custom UIViewController (diagrammatically as well) Thanks and regards, ...

UINavigationcontroller - Changing the State of a UIViewController on the Stack

I have a navigation controller that displays viewcontroller A. There is a right button (labelled "B") that leads to viewcontroller B. Now, when the user makes an important change in (the view managed by) viewcontroller B, viewcontroller B's usefulness has ended. From then on, VC A should lead to a new VC, viewcontroller C. This is th...

Objective-C: object init and memory management

Given the next code snippet: ... - (void) setTotalAmount: (NSNumber*)input { [totalAmount autorelease]; totalAmount = [input retain]; } - (void) dealloc { [totalAmount release]; [super dealloc]; } ... What I want to understand how really we set value. We allocate local (instance) var and "retain" to input var. But w...

Programming on iPhone - how ?

hi i have some question about programing on iphone what OS the iphone have ? what the language for programing on iphone ? what compiler i need ? is there Visual-studio tool for this ? (i'am C# programmer ) ? thank's in advance ...

Core Data: Reset to the initial state

Hello, I have an object, I make some changes to it, but I don't want to save them, I want the 'old' values. I've tried with: [managedObjectContext rollback]; [managedObjectContext redo]; [managedObjectContext reset]; and none of them seems to work ... NSLog(@"current: %@",ingredient.name); // ===> bread [ingredient setName:@"test n...

Download Files within iPhone app

Hi, I am currently developing an iPhone app and would like to implement the ability to download files (specifically pdf, mp3, doc and ppt files) from the internet. I have created the UIWebView, but want to know the best way of capturing the files when they are linked to in the webview and then download them to a specified folder in the ...

Is it possible to trigger onmouseover event on iPhone

On iPhone 3G, is it possible to fire onmouseover event on safari ...

iPhone - NSDictionary to NSArray with preserved order

I've got a couple dictionaries in a property list, that make up a menu system for my game, like so: New game Easy Normal Hard Load game Recent Older Options Game Sound etc.. Each item in this list is a dictionary. I use UINavigationController and UITableViews to display this menu system. When an item is ch...

How to conform to UITabBarControllerDelegate

I have a tabbar based application and do the following to get a reference to the application delegate: MyAppDelegate *appDelegate = [[UIApplication sharedApplication] delegate]; Which then gives this warning: warning: type 'id <UIApplicationDelegate>' does not conform to the 'UITabBarControllerDelegate' My application delegate hea...

UINavigationController usage when not the main/root view

I'm having a bit of trouble wrapping my head around using a UINavigationController (with Interface Builder) when it isn't at the root of the application. I've found many examples which demo how to use one of these controllers when it is at the root of the application (in MainWindow.xib); however, my app is not structured this way. I ha...

Custom UITableViewCell always black unless set to anything but clear

My custom UITableViewCells always have a black background unless I set the background of the UITableView to clear. However I want to set the background colour to another colour and as soon as I do the cells turn black (even though the background of the control does change) ...

How do I pass a nil-terminted list of strings to an Objective-C function?

The function [NSArray arrayWithObjects:foo, bar, nil] passes a nil-terminted list of string to a function. If I want to write a similar function, what does the declaration look like, and how do I iterate through the strings? ...

Good way to start developing for iPhone, given some experience in Cocoa on Mac

Hi, I have some experience of Objective-C/Cocoa programming on Mac and I'd like to start developing for iPhone/iPad with UIKit. (I just paid $99 to the mother ship.) What would be a nice way to start? I'd like to have your suggestions/recommendations. More specifically, Which book I should buy? Is there a nice book contrasting AppKit/...

Problem with my custom class and it's instances

Hello. I'm doing an app where user can click on a map and hear a different sound playing depending on the location clicked. I've got a point in polygon for this and it works perfectly. I've created audio playlist system also that queues audiofiles and plays them in order. This too works. However I'm trying to implement a method that chec...

How to access the instance variable of the view from its subview in iphone

I am new to iphone development.I want to to access the instance variable declared in uiview from its uiview subview.please help me out .Thanks. ...

Xcode iPhone SDK "Terminating app due to uncaught exception"

Hi. I have a problem with my application for the iPhone. It's a tab based application. In one of the tabs, I have a Table View. I have set it up to load in data from a PLIST. My problem is that when I try to build and run it, the application either crashes, or stays at a black screen with the error message "Terminating app due to uncau...

iPhone UITableView populateing from connectionDidFinishLoading

Hey all. I have been trying for hours to figure this out. I have some JSON from a NSURLConnection. This is working fine and I have parsed it into an array. But I can't seem to get the array out of the connectionDidFinishLoading method. I an am getting (null) in the UITableViewCell method. I am assuming this is a scope of retain issue, bu...

How to indicate that an iPhone app is compatible with 1st gen iPod Touch?

My app appears as "Compatible with iPhone and iPod touch (2nd generation).", I would like to make it "compatible with all iPhone and iPod touches (any generation)", do you know how to do that? I've read the documentation on this, but it's unclear how that is done. What is the magic setting that marks an app compatible with all iPhoneOS ...