iphone

Invoking a method on a delegate after delay, from an object at the end of it's lifetime.

I have a modal view controller that creates core data changes in it's own context, and when I click done, it saves the changes (that dispatches the merge changes notification), notifies the delegate and dismisses. My problem is that I need the delegate to receive the message after my main context has merged with the changes of the editi...

UIImagePicker doesn't showing selected image

I'm new to iPhone and I'm using this code to select an image from the iPhone library and show it in imageView. The library is showing images, but when I'm selecting the image, it doesn't appear in the image view.. - (void)viewDidLoad { [super viewDidLoad]; UIImagePickerController * picker = [[UIImagePickerController alloc] init]...

How to add view in UITabBarController

I find a problem is that when I use UITabBarController , each time viewController have to be define in the property 'viewControllers', this cause coder can not free the unused viewcontroller in freely, I meaning is that when shift to second tab view then I want free the first tab view immediately , but now , I can not do this action........

Availability of Push notification service in this situation?

hi all, i'm working on a football application. the application connects to a webservice and gets the required data via soap request whenever a tab is opened. one of the tab shows live matches of the current day. when the live tab is opened, it refreshes the view by a timer and shows the status updates (goal scored, half time or full time...

How to set the Video recording time limit in iPhone?

Is it possible to set the time limit for a video recording in the iPhone? I know the maximum limit is 10 minutes. But I want to reduce it to 5 minutes. If it is possible how can it be done? ...

How to differentiate localization for US , GB & AU for iPhone SDK

I need help for localization for languages US , GB ( Great Britain) & AU ( Australia ) for iPhone SDK. I created 3 different folder en_US,en_AU & en_GB & localized "Localizable.string" file in all three respective folders. Now When I set device language to English & Regional Format to US or AU or GB through Device Settings & install m...

defaulting iPhone numeric keypad

Hi can anybody tell me how to show a default numeric keypad on iPhone rather than a character keypad. ...

Why is Gamekit designed this way? Even in Client mode all notifications are received

We are not using GKPeerPicker control. We are implementing custom UI. We have done some traditional client-server apps in different languages/platforms. In Gamekit, I have one in server mode and rest of them are in client mode. I am not using Peer mode. Yet, when ever some new client connects all the already connected clients are implic...

How does the Squarespace iPhone app allow multiple images to be selected from the library?

I've just seen a video of the new Squarespace iPhone app and they appear to allow you to choose multiple images from your library or camera roll. How have they achieved this, as there's nothing allowing this in the UIImagePickerController docs? This isn't supported by the SDK, and if they're accessing photos from outside the sandbox an...

iPhone Vibrate While playing sound

Hi. How can I set iPhone to vibrate while playing the sound. The code I use plays the sound firts and then vibrates or vice-versa. Thanks ...

Custom MKPinAnnotationView Colours

Hi Is it possible to define custom colours for the MKPinAnnotationView colour rather than the default red, green or purple? Docs say no... Thanks ...

Is MonoTouch a viable platform for iPhone development?

MonoTouch seems like a great platform for iPhone development, but I'm concerned about deploying it to the Apple Store. Are there any examples of applications built with it that are currently available on iTunes? We're starting a new project for the iPhone, and keeping the entire stack in C# would be great, but we don't want to incur th...

CommonCrypto is no longer part of the iPhone SDK - Where else can I easily get an MD5 function?

So as many of you may already know, CommonCrypto isn't included in the iPhone SDK anymore (as on 3.0). Where else can I easily get hold of an MD5 function? Am I going to have to compile OpenSSL into my project just to get MD5?? A few clarifications: This isn't for security This is going to be used with an API that requires an MD5 dig...

How to switch to a different UITabBarItem on UIButton touch up inside

I have a UITabBarController as my MainWindow.xib. I have 3 tab bar items on the tab bar. On the second tab bar item, i have placed a UIButton. When the user taps the button, i want to be able to switch to the first tab bar item and display the view loaded there. How would i do this programmatically? Thanks ...

iPhone geolocation with googlemaps API, plotting markers with GXml?

Hi, I'm trying to plot markers with GXml onto my map, it works perfectly fine in firefox (which also has geolocation) but on the iPhone no plotting accures. Here is my code: iPhone 3.0 geolocation demo // var iconBlue = new GIcon(); iconBlue.image = 'http://labs.google.com/ridefinder/images/mm_20_blue.png'; ...

Can I have multiple full-screen OpenGL views (EAGLView) displayed at the same time on iPhone?

Can I have 2 full-screen EAGLView-s (the OpenGL layer implementation from Apple's sample code), stack them on top of each other, draw on them independently and then see both images? (I suppose the top one will need a glClearColor(0, 0, 0, 0) to be transparent -- does that even work?!) In my initial experiments, the 2nd EAGLView complai...

animated "crawling text" on iPhone

Does anyone know how to create a "text crawl" like that shown at the bottom of the ESPN ScoreCenter app for the iphone? Basically, there is a small bar of text at the bottom of the screen and the text is animated so that it moves slowly from right to left across the screen. Can anyone point me to some source code that does something...

How to perform an accurate currency calculation in an iPhone app

I've written an iPhone App that calculates a total cost by adding/subtracting units of predetermined cost. This was working fine until I realised that the float values I was using caused the total to be inaccurate so I started to look into using NSDecimalNumber. I'm now rather confused and have an 'out of scope' error. Relevant sections ...

Detect touch on UIView with Interface Builder

How can I detect touches in a UIviewController for a UIView with code only (without Interface Builder)? I found the touchesBegan method but it doesn't get called ever. I didn't initialize anything else regarding this method. -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event ...

How to handle NSZombies in an asynchronous NSURLConnection?

Hi, I'm currently asynchronously using NSURLConnection with several UIViews (every view handles NSURLConnection as delegate). The problem I have is when user switches views too fast and the delegate becomes NSZombie the app crashes - that is NSURLConnection doesn't have living delegate anymore. So, the first question is if there's a way...