iphone-sdk-3.0

Dynamic, localized NSString

I need to build an NSString that resembles the following: Name: Craig Buchanan Telephone: 800-555-1212 Email: [email protected] Where: each line (e.g. Telephone) is included or excluded based on the value of a UISwitch the key part of the string (i.e. the part to the left of the ':') is localized the value part is from a UITextField...

iphone - in app purchase, changing app id of existing application

I have an application in App store that uses app id without "in app purchase" option enabled. I'm going to add this feature in further versions. What options do I have? Do I need to create a new app id with "in app purchase" option? (is it allowed for existing applications ?) ...

UIImagePicker Changing my Background?!?

I am opening an image picker, camera style, as a modalviewcontroller. If I open the image picker, then cancel, the previous view comes back fine. If I open the image picker, take a picture, then go back and cancel, the background to my previous view is missing and I can see through to the main window. Does anyone know how this might h...

Add images via Push Notification Service?

I have a content app and would like to notify users of new content using Apple Push Notification Service, bypassing the now very long App Store submissions. Once the user receives the notification, a download update button will become enabled. The user will download an sql file plus images from my website. The sql file will execute in...

How do I identify a user when working with iPhone StoreKit

How do I identify the user that is doing a purchase with the StoreKit in the iPhone. I'm planing to build a suite of iPhone apps that will sell content which will be provided from a external server. The StoreKit documentation describes how to send transaction information to an external server and how to verify the transaction from tha...

Scrolling UITextView programmatically

I'm implementing some simple text chatting capabilities in my app and I'm having issues with scrolling the UITextView programmatically. I'm using a UITextView created in Interface Builder that appends a new line and some text to the preexisting text. When the new text is added it should scroll to the bottom. I built a test application t...

Using NSStream to communicate with PHP?

I'm working on an iPhone project that needs to receive data from a PHP script during execution. My first thought was to use sockets/streams on either end to connect the two, but I am having trouble finding information on how to do this from the iPhone side. Has anyone been down this path that could point me towards some useful resources...

Scaling not as smooth in 3.0 as in 2.x

I have a CATiledLayer backed UIView that is added to UIScrollView and it is returned as view to be scaled in response to -(UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView delegate method. Now the problem is that scaling on a scale falling between the 2x steps provided by CATiledLayer (like for example 1.333) results in v...

How can I turn on and off the bluetooth on iphone sdk programatically?

Hello, how can I tell programatically if the bluetooth is turned on or of on the device? And in ethier case turn it off or on programatically? thanks ...

iPhone ModalViewController Problem

I am Using a Navigation based application. However i don't want to push a view. I have changed present ModalViewController. Now, I am confused - how to load previouse view. My Application's Table View - default in navigation base application On navigation controller I have added (add employee) button. On Add(employee) click i have wri...

iPhone 3.0 SDK: stacked presentModalViewController calls or in series?

Here's the scenario: if this is a user's first time logging into my web service, I present a modal login view. Upon success, the user may have multiple items in his/her account and must choose one of them before he/she can proceed with the rest of the app. I want to put up another modal view with a picker so the user can make the choic...

iPhone SDK 3.0 deprecation of UITableViewCell .text

Came across an SDK3.0 deprecation that I am having a bit of trouble tryinig to figure out. If my declaration of @property (nonatomic, retain) UIImage *rowImage; does not work, nor @property (nonatomic, readonly, retain) UIImage *rowImage; and I @synthesize rowImage; Do I need to write my own setter because @synthesize will not prop...

UIScrollView shifts below navigation and status bar

I have view which contains a scrollView. When the view shows up the image appears in full screen (320x480) hiding the status and navigation bar. When I tap the screens - status and navigation bar appears on the screen. But this thing shifts the UIScrollView below the the navigation bar. I want the status and nav bar to show over my scrol...

Modal view becomes 2x wide?

In my application, I would like a modal view to present itself when the app starts up and there is no wifi. I have code like this in the applicationDidFinishLaunching: UIViewController *modalViewController = [[UIViewController alloc] initWithNibName:@"ModalDisconnect" bundle:nil]; [[self tabBarController] presentModalViewController:m...

UITabBarController initializes with nothing selected

I've got a UITabBarController in my project that I'm creating programmatically - without a nib. I create the view controllers, initialize them, and then create an array of them and use the setViewControllers:animated: method on my tab bar controller. This works except that when it appears, my tab bar controller doesn't have anything sele...

Problem when trying to access NSArray

Hi, I'm trying to initialize an NSArray in the loadView method. And when I initialize it, it has a certain address in the memory. Then when I touch the screen I call the refresh method. When I debug the blends array here, it has the same address, but the content is {(int)[$VAR count]} objects... Here is my code: @implementation MCPic...

iPhone Contact Picker behaviour (like in Mail.app)

Hello, can you give me a hint how to customize such a contact picker from e.g. Mail or Facebook App with the (+) Adding Contacts (or other data) to a UITextField for recipients .. each of the entries can be deleted then with the (x) .. can you give me a hint where to start and what i should customize? thank you ...

How do I determine if a coordinate is in the currently visible map region?

I have a list of several hundred locations and only want to display an MKPinAnnotation for those locations currently on the screen. The screen starts with the user's current location with a 2 mile radius. Of course, the user can scroll, and zoom on the screen. Right now, I wait for a map update event, and then loop through my location...

How can I make a iPhone app compatible to 2.2.1 and 3.1 SDK ?

Hi All, I have made some apps in 2.2.1 now when I run the same app in 3.1 it gives errors. Changing the codes is a solution I am not looking for. I am looking for some pre-processor directives that can make my app compatible to both SDKs. Something like #ifdef. Thank You All. ...

iPhone firmware

I developed one iPhone application using iPhone OS 2.2. It works fine in the emulator. When I install the application in my iPhone using iTunes (ipa file), it isn't working. One thing that : my iPhone firmware is 3.0, is it the problem? Does iPhone OS 3.0 (on real hardware) work the application that are developed on iPhone OS 2.2 ? ...