iphone

For consistent tempo on iPhone, is there a better solution than system sounds?

Hi, I've been working on a metronome app for quite some time now. Following Apple'e sample Metronome application, I've been using a timer on a (high priority) background thread to play system sounds. My results are okay but far from perfect. Some issues that I face are: ~ the app doesn't really keep time, although it sounds like it doe...

How to create a iPhone Framework

Can u please let me know the procedure as how create a Framework for iPhone? Is there any seperate prodcedure to create a Framework in Xcode? Thanks in Advance. ...

Hiding the Quick Time logo and controls when an audio file is played using MPMoviePlayerController

Hai all, in my application i need to play a streaming audio, i used MPMoviePlayerController to play the audio, it works fine, but i don't want the Logo and controls appearing on the screen( like playing in the background). is there any way to hide the logo and controls ? thanks ...

Objective-C use typedef enum to set Class behavior, like Cocoa.

Hi Im extending the UIButton Class to be able to set the font and color of the UINavigationBarButton ( from this code example: switch on the code ) I goes like this: @interface NavBarButtonGrey : UIButton -(id)init; @end @implementation NavBarButtonGrey -(id)init { if(self = [super init]) { self.frame = CGRectMake(0, 0, 49.0,...

IBOutlet and IBAction

What is the purpose of using IBAction and IBOutlet in Objective-C coding for the iPhone, does it make any difference if I don't use them? ...

Uploading an updated version of app to the store with new app id

Hi, Our app is already there in app store. We now have integrated push notification support to our app and this requires new app id to be created, because our existing app id has got asterisk symbol in it. To enable push notification, app id should not have asterisk at the end, instead it has to have an unique name. So we decided to cre...

How to calculate distance between two places? Is there any service available by Google Map for iphone?

I want to put facility to display distance between two places selected by user. Is there any sample source code / service available to do so? Thanks in advance. ...

MKMapView SouthWest and Northeast points

Hi, I am developing an iphone application using MKMapkit.I need to find the southwest and Northeast points from a set of latitudes and longitudes .Looking for a solution.. Thanks in advance ...

IPhone P2P - Problem with p2p connection when 3 iphones are searching

Here's the situation, I made a game that use GKSessionModePeer to do the multiplay mode, but the problem is happened when I use three iphones, just call them A,B,C when A and C searched B,they choose B at the same time, then the screen change to the waiting for apply page, at this moment,problem happen!!!!! A and C start the game sudden...

Global variables in Objective C on iPhone

I am new to Objective C with a background primarily in database programming. I am developing an iPhone medical application that involves multiple formulas for calculations, using many variables. Essentially each formula will have its own screen, but numeric entries and calculations from each screen should appear on the screens for other ...

iPhone Dev = maps and deselecting annotations

I am successfully drawing annotations on a map using an array of annotations. I can even click on the annotation and change it’s colour or image. My problem arises when the use selects the second annotation and I want to dynamically change the colour or image of the first one back to a non-selected colour/image. I can get the array of al...

Customizing icon position and title of UITabBarItem's (iphone sdk)

Hello, I have a tabBar, and I want to customise the items in the tab bar. I want to prevent the display of the title (easily achieved by setting the title to nil), and reset the icon position to be in the central vertical position. Does anyone have any idea of how this can be done? Thanks. ...

how to view contacts in iphone in simulator

hai i'm new to iphone programing how to view contacts in iphone in simulator? ok. my question in detail is, my application runs on simulator. my app should access contacts information of iphone when iphone is connected to mac(pc). ...

Resetting NSMutableArray

What is the best a quickest way to reset an NSMutableArray? ...

UIActionView display wrongly

I have a UIActionSheet that pops up as soon as the initial view in my iPhone app loads if there is data that can be sync'd back to a web service. The trouble is that the UIActionSheet is popping up too high - exactly half the tab bar is exposed beneath the action sheet. I'm not aware that this is caused by styling? Can anyone offer an...

How to push viewcontroller ( view controller ) ?

Hi, Memory management is a very important issue in iPhone. So I am asking a very general question. There are two ways to call a the viewController of another class. Way 1: AnotherClassViewController *viewController = [[[AnotherClassViewController alloc] initWithNibName:@"AnotherClassView" bundle:nil] autorelease]; [self.navigationCo...

mapkit and annotations

Hi I am very new to XCode and iPhone development so please bear with me if this question is too simple. But I have a map and I have successfully added images (not pins) to it for my annotations. And I can change the image when the user selects one of the annotations. I created a class that inherits from MKAnnotationView with the follow...

Rotate iPhone Keyboard in Facebook Connect login dialog

How do I get the keyboard to show up at the bottom section of the screen on the iPhone when using the Facebook Connect iPhone library. I've set UIInterfaceOrientation to UIInterfaceOrientationLandscapeRight in my Info.plist file. The login dialog has the correct orientation and the keyboard knows to some extent it should be rotated be...

App Store Links

Hey all. Im using the following string in the "[UIApplication sharedApplication] openURL:]" function to access the app store app and make a predefined search in the app store on a button press in my app. @"http://phobos.apple.com/WebObjects/MZSearch.woa/wa/search?term=[MY APP NAME]&media=software This works great if the app store app w...

cocos2d delegate question

in the main.m file: int main(int argc, char *argv[]) { NSAutoreleasePool *pool = [NSAutoreleasePool new]; UIApplicationMain(argc, argv, nil, @"AppController"); [pool release]; return 0; } I just add the cocos2d sample test code to my project, and there're so many AppController delegate in those files. So how can I know which "AppCon...