iphone

how do i get label's text on the next view's navigationbar?

i have a customcell in which i have a label.now i want the text on the selected cell's label in the nextview's navigation bar? how do i get it??? ...

set pixel problem

how to use setpixel function in iphone Thanks in advance ...

AudioQueueOfflineRender questions

I have a few questions about this after reading the iPhone documentation on it: Does this take the audio being played and save it to a buffer so it can be written to a file? If so does the audio being played have to be played using a playback audio queue or can it be played via a higher level class such as AVAudioPlayer. Can anyone poi...

Programmatically force a UIScrollView to stop scrolling, for sharing a table view with multiple data sources

I have a UITableView whose data source and delegate are switched between a couple of custom data source objects when the user touches a segmented control (think "Top Paid" vs "Top Free" in the app store app). Each data source object saves its last scroll content offset, and restores it when it becomes the active data source for the tabl...

Hidden Tab bar view prevents touches

I have a hidden tab bar but I am finding that the area of the view that is where the tab bar would have been does not receive touch events. The tab bar is hidden due to setting hidesBottomBarWhenPushed. Is there anyway around this? ...

NSMutableArray Crashes App

Hi, I have a custom class "Person". Several Person objects have been created and added to an NSMutableArray called 'personArray'. I'm then going to pass one of these to the next view, called userView. These have all been Allocated and Initialised. The code I am using is: [userView setPerson:[personArray objectAtIndex:indexPath.row]...

Multitouch detection

Hi All, I am developing a game of race type. I have a image for acceleration of car and other image for changing the track as we have 3 lanes. My problem is that when i am touching the acceleration image and suddenly want to change the track its not detecting the another touch if i am still touching acceleration image. Means multitouc...

How do you optionally use iPhone OS 3.0 features in a 2.0 compatible app?

I'd like to use some features of iPhone OS 3.0 in my 2.0 app when it runs on a 3.0 device. I don't want to go 3.0 all the way because there are customers who do not want to update yet. I experimented a bit with weak linking of the MapKit.framework (-weak_framework MapKit). I found it quite cumbersome, since I had to trick the compiler/l...

What do you use to play sound in iPhone games?

Hello! I have a performance-intensive iPhone game I would like to add sounds to. There seem to be about three main choices: (1) AVAudioPlayer, (2) Audio Queues and (3) OpenAL. I’d hate to write pages of low-level code just to play a sample, so that I would like to use AVAudioPlayer. The problem is that it seems to kill the performace – ...

Correct way to alloc/init instance variables in Objective-C?

I was looking at some sample code on Jeff LaMarche's excellent blog when I came across the following: - (void)applicationDidFinishLaunching:(UIApplication*)application { CGRect rect = [[UIScreen mainScreen] bounds]; window = [[UIWindow alloc] initWithFrame:rect]; GLViewController *theController = [[GLViewController alloc]...

UIWebView going blank when navigating back to the view

Hi I have an app that loads a UIWebView. And that works well. It is possible for the user to click a link in the web view which then creates a new view controller/web view to load the link, which also works well. What isn't working so well, is that sometimes (1/4 maybe) when I come back to the initial web view, the view is blank white....

How do you animate a speedometer needle in the iPhone SDK?

I've looking to animate a a needle in a speedometer-like item. How do I spin the needle and simulate the acceleration and the bouncing effect you would see in cartoons (when the needle reaches the max and starts bouncing). ...

Multi-touch appearing as one touch

I am getting inconsistent results using multi-touch. I am trying to detect a 2 fingered swipe. Sometimes I successfully detect 2 touches, othertimes it appears as 1 touch but oscillating in position between the two fingers. I created a test app to try to isolate this behaviour but I found that the test app behaved ok. The app where th...

Are applications written for iPhone binary compatible with iPod Touch?

Given that for instance no sms APIs are invoked. Say I would want to port my 'notepad' app. ...

Question about IPhone app bundle reasonable size for App Store. Storage memory!

I plan to submit my new app to App Store. App consist of a lot of image resources (animation) - more than 40M. Is there any formal limits at App Store of the app bundle size? I never see such condition and think it will be ok. Is it right? My major question is.. Is there any negative aspects for usability in case app is a huge? -inc...

iPhone StoreKit development: Can't create a test user?

I'm trying to get up to speed on how to develop an in-app store using the new 3.0 SDK... but I'm a bit stuck in that I don't seem to be able to create a test account. The iTunes Connect FAQ states "To create test users for your sandbox environment, go to the Manage Users section of iTunes Connect and select In App Purchase Test User. Yo...

Conditional launch of NavigationBar or TabBar + NavigationBar view

A typical Navigation-based app would have its MainWindow.xib contain a 'Window' and 'UINavigationController' -- this seems to work when a NavBar is your root view. If I want to show a NavBar view on launch based on one criteria and a TabBar otherwise, what's a good way to do this, utilizing Interface Builder for some of the layout of my ...

Set UITableViewCell background color on plain style table view?

I'm building a plain style table view with a search bar and I'm having trouble replicating the look of the "gutter" (when the table view is dragged down) in Apple's table views. If I set the background color of the table view, the gutter looks fine, but my cells use that color as the background color. I've tried setting the backgrou...

How do I give a UITextView focus programatically?

Hello, So I want to bring in a modal view controller that has a UITextView in it and I want the keyboard to automatically popup and the UITextView have focus. I found a way to accomplish this by doing the following: textView.editable = YES; textView.editable = NO; This just seems hacky to me, is there another way? ...

How do I do geocoding (NOT reverse geocoding) on iPhone?

I am perplexed as to why there is an iPhone API for Reverse Geocoding (lat/long to address) but NOT for regular Geocoding (address to lat/long). I want to be able to display an annotation on a map (MKMapView) at an address entered by the user. (As text, not by touching the map) As far as I can tell, that means I have to determine the ...