iphone

Save additional information to a plist every time I run the app? (iphone)

My iphone app writes key-value pairs to a dictionary in a plist file. I'm basically saving the user's score when they play the game. This is all fine and dandy, but each time I run the app and get new scores, the new values get saved over the old values. How do I add information to the plist each time the user accesses the app instea...

how can we play audio and video together in ipod/iphone ?

HI all i am playing a video(.mp4 format) without sound (i mean it doesn't have sound it is a mute video ) and in the background i am playing an audio file (.mp3 format) when i play my code through simulator it works fine as i want like when i tap on the video it is just mute but behind i am playing the audio so for user it seems that ...

Custom Keyboard in iphone

i have to develope an application in which i have to add two buttons within the keyboard i need to know how to implement it. please help me. i will be thank full. ...

How to bundle (zip/tar/?) sets of files so that an iPhone app can expand them?

How can I bundle up an arbitrary directory of files, preserving their hierarchical paths so that they can be expanded by an iPhone app? More background on what I am trying to do: I would like to add dynamic content updates for my iPhone app. I'll make a bundle of html files available on a server, and I'd like the app to check period...

performSelectorInBackgroundThread and NSTimer

For a game I'm developing, I call an expensive method from one of the touch processing routines. In order to make it faster, I decided to use performSelectorInBackgroundThread, so instead of: [gameModel processPendingNotifications]; I switched to: [gameModel performSelectorInBackground:@selector(processPendingNotifications) withObje...

Most elegant way to sync managed objects with controls on iPhone?

I'm trying to port an iPhone application from using SQLite to Core Data. Is there a way to sync managed objects directly with the controls that manipulate their values, without having a controller in the middle? Note: I CAN do it the hard way -- it's what I'm doing now; I'm looking for the elegant, easy, fast way. I'm paging through t...

Android equivalent to iphone indexed UITableView

I am porting an iPhone app over to the Android platform. One of the views has a very large list of data and on the iPhone app, there's a scrollbar of sorts on the right hand side that displays the letters of the alphabet and allows the user to quickly scroll through the list this way. I am having trouble finding such functionality in And...

Iphone sdk tabbar View outlet was not set

I'm about at the end of my rope with this freaking project!!!!!!! I have a UIViewController class that is linked to a nib that has a tabbar controller with 2 tabs. Both tabs load nib files. When I compile I get an error: -[UIViewController _loadViewFromNibNamed:bundle:] loaded the "MainViewController" nib but the view outlet was not se...

How to fill color in only a part of the image in iPhone.

Hello all, I am using the following code to fill color in an image in iPhone. - (UIImage *)colorizeImage:(UIImage *)baseImage color:(UIColor *)theColor { UIGraphicsBeginImageContext(baseImage.size); CGContextRef ctx = UIGraphicsGetCurrentContext(); CGRect area = CGRectMake(0, 0, baseImage.size.width, baseImage.size.height); CGContext...

Control the sensitivity and rotation angles of an iPhone application

I have an application that rotates between landscape and portrait mode, which works great. However, it gets really jumpy and wants to rotate at 45deg at the slightest movement of the device. Is there a way to control the sensitivity of rotation, or prevent it from rotating until it hits certain targets (90, 180, 0) while ignoring the in-...

iPhone SDK 3.0 - wait_fences: failed to receive reply: 10004003

I've been working on an iPhone application, and since I started building on SDK 3.0 I receive this error whenever the application attempts to communicate with my webserver. Everything seems to be running fine, but I can't find anything that explains the root cause of the message. Any help would be appreciated. ...

IPhone Dev: Activate the view of a tabBar button

Hi, I have an application that has a tabBar that handles all the views. In the first view I have a login process. When that process finishes I want to go automatically to the second tabBar view without making the user to click in its respective tabBar button. All I've got until now is to highlight the button with this: myTabBar.select...

Scale/Rotate a button in interface

I need to rotate a button by 30 degrees in iphones sdk interface builder, how do you do that??? Thank you in advance ...

How to force iPhone/iPod touch to handle more than 5 touches at the same time?

I would like to develop a multi-touch (up to 8 fingers) application for iPhone/iPod Touch. But during testing on my 1st gen iPod Touch once I put the 6th finger weird things started to happen. I don't get Touch Began for the 6th finger nor Touch Ended/Cancelled for the first 5 fingers. Do you know of any workaround for this? Does it beh...

Why Apple Uses Objective C(General Question about iPhone SDK and Apple).

Why did Apple decide to use Objective-C for the iPhone SDK and not C++? It seems strange to me that they would not have chosen a language more popular than Objective-C. Is it because wanted to have something unique in their application which is not otherwise in general use? I'm just curious about this. ...

Tabbar not able to access Navigationcontroller

I have a navigationController app. I push a tabbar onto the view. Tabs are working title is changed, perfect. Now one of my tabs has a list and I try to link out to a child page within the tabbar: NextViewController *nextController = [[NextViewController alloc] initWithNibName:@"ProfileDetailController" bundle:nil]; [self.navigationCon...

Need help with creating complex UITableView items (like the Settings app).

I hoping to create a custom Settings view, similar to the Settings application, but with more control over the UI and access to some settings (i need to lock some of the settings). Obvously, there are a variety of UI elements mixed in each row of application's UITableView. For example, the 'Airplane Mode' setting shows a UISwitch, whil...

iphone camerOverlay for use with Alternate Reality applications

Does anyone know a way to take an image captured on the iphone's camera, and do some image processing (e.g. edge detection, skeletization), and then overlay parts of the processed image on the original image (e.g. only the highlighted edges). More generically how do I create a UImage with transparency (do I just scale the image and ove...

NSMutableSet vs NSMutableArray

What's the difference? In my context, I need to be able to dynamically add to and remove objects. The user clicks on rows of a table that check on and off and thus add or remove the referenced object from the list. A wild guess is that array has indexed items while set has no indexes? ...

What is the correct way to show/hide a UIScrollView?

I have an iPhone application that uses a UIScrollView to display a larger version of an image on the main screen. I am using IB to create the main screen that has text, small images, and price about a product. I have it setup to show/hide the UIScrollView if the user touches the small images. It works ok, but things are pretty messing in...