iphone

What is better: Global string or singleton?

For my brand new ORM (chibi-ORM) I face a desing decision. I'm building the API for relationships, like: @interface SamplePerson : DbObject { NSString *name; DbObjectRelation *cities; } Now, for DbObjectRelation I have this mockup: @interface DbObjectRelation : NSObject { NSMutableArray *childRows; DbObject *pare...

Unit and Functional testing iPhone code?

I just sat in on a seminar about developing apps for the iPhone. The speaker told me that there is NOTHING available for writing unit tests or functional tests for your iPhone software. Is this true? Is there really no testing story for the iPhone as of now? ...

What KML fields are supported in the native Google Maps application on the iPhone?

I have been doing some research on using maps in iPhone applications and it looks like most of my needs can be met passing KML data into the built-in google maps application, but I cannot seem to set the same values (phone, home page, address) that are available when performing a built-in search in the maps application. Does anyone know...

Customizing the More menu on a Tab bar

I am using a tab bar (UITabBarController) on my app and I wish to customize the appearance of the table that appears when you click the more button. I have worked out how to change the appearance of the Navigation bar that is on the more screen by setting self.moreNavigationController.navigationBar.barStyle in a subclass of UITabBarC...

What is the iPhone SDK Missing?

I've been doing mobile app development for a long time (2001?), but the systems we worked with back then were dedicated mobile development environments (Symbian, J2ME, BREW). iPhone SDK is a curious hybrid of Mac OS X and Apple's take on mobile (Cocoa Touch). But it is missing some stuff that other mobile systems have, IMO. Specifically...

Add bookmark to Safari on iPhone when an application is installed?

I'd like to add a bookmark to a users Mobile Safari bookmarks when they install my iPhone application. I don't want the user to have to do it manually, i'd like my iphone app to install the bookmark (actually a javascript based bookmark, e.g. javascript:....)... Does anyone know of anyway to do this? Also, I know that an app can regi...

Exist a generic library of validators for obj-c?

I wonder if already exist a generic library of validator suitable for a iPhone project (or better, bussines objects) for obj-c. Things like: Validator.IsNotEmpty.. Validator.IsValidEmail.. Validator.IsValidZipCode.. Validator.IsValidRegex.. Validator.IsInRange.. ...

Does UIActivityIndicator require manual threading on iPhone

I am running creating an iPhone application which performs a costly operation and I wanted to create an activityIndicator to let the user know the application has not frozen. The operation is performed entirely in one event call... so there is no chance for the UI framework to receive control to actually display and animate this indicat...

How to retrieve standard iPhone tabitem images?

I would like to use the standard icons like search, download, contact, setup, and list. Most of them existing in app like App Store, but I am not sure how to retrieve them. Thanks ...

Access to iPhone's BlueTooth Abilities via SDK?

Is there a way to use Bluetooth from the iPhone SDK? I have some cool ideas for apps involving bluetooth, but I haven't turned up anything searching. ...

Method for animating images (like a movie) on iPhone without using MPMoviePlayer

I need to be able to display an animation over a static image. Given that MPMoviePlayer gives you no control over anything useful, the only way I can think to do this is to use multiple static images, which we display (one-by-one) to create a "movie like" animation. I know we could use UIImageView to do this (by setting the UIImageVi...

Hiding the Keyboard

I have a UISearchBar and on the delegate method I hide the keyboard when the text field is cleared: - (void)searchBar:(UISearchBar *)filterBar textDidChange:(NSString *)filterText { NSLog(@"filter: %@", filterText); if ([filterText length] == 0) { NSLog(@"hiding keyboard"); [filterBar resignFirstResponder ]; N...

How do you create hybrid XCode projects for Mac & iPhone?

Hello, I'm working on a project which shall contain two targets. One for building a Framework to use in Mac development and another to create a static library to use in iPhone development. In the common code it's no problem to #ifdef between the platforms, but I just can't get the targets and dependencies right. The first question is, ...

Running Apple Store Apps on iPhone simulator?

Can i run download applications from Apple Store on iPhone simulator? ...

Data Store for a Mac/iPhone Hybrid App

I've been doing iPhone development for the last 5 months or so, and have been using Gus Mueller's FMDB for database interaction. My next project will have both a Mac and an iPhone application, and they will share data between them, although in the end, the iPhone will be mostly a viewer app, with some minor editing capabilities. My que...

UIWebView with scrollbars

How can i add scroll bars to uiwebview. should i put it in uiscrollview. In that case, i'm getting nothing :( Any help will be appreciated. Thanks. ...

iPhone SDK: Play a single WAV from a button.

I am currently trying out this code: # NSString *path = [[NSBundle mainBundle] pathForResource:@"dream" ofType:@"m4a"]; # AVAudioPlayer* theAudio=[[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:path] error:NULL]; # theAudio.delegate = self; # [theAudio play]; However, the SDK says that the ViewController does...

Programming test for hiring iPhone developers

My company is starting a new branch with IPhone development and we need to hire a developer. I like to test this person in his/her skills in iPhone developement (Objective-C etc) and general programming skills. iPhone programming skills is not a must to apply for this job but I still like a have a iPhone/Obj-c theme on the questions...

What information does a developer get from apple about each user that buys an app in the appstore?

Does anyone know what end user information a developer receives from Apple regarding a purchase of their application in the app store? Do they receive the end users full name, the unique identifier of their iphone/itouch, or possibly their email address? Thanks, Brad ...

How to read iPhone files without jailbreaking?

I'd like to access files in an iPhone, such as using remotely connecting via ssh and telnet. But it appears that the iPhone's ssh or telnet are not supported. I can ping it, but cannot use telnet or ssh. I read through some internet article, it appears that using jailbreak or Cydia it is doable, but I guess it would break my iPhone's li...