iphone

itunesconnect edit metadata

My first app just went live and I am thrilled. Now I've discovered that the images could be in better order. Is it possible to do that now, or is it too late? ...

Accessing contact info of Incoming calls/sms

Hi, I want to confirm if it is allowed to access the Contact Info of Incoming Calls/SMS programmatically. Are developers allowed to access and retrieve the contact info of incoming calls or sms. Is there any API available for this. Thanks Taimur. ...

Correct way to instantiate NSDictionary/NSArray in init without extra retains

I have numerous classes that use the various NSDictionary/NSArray collection classes as ivars but often I run into the problem of my collection class getting released before the containing class is released. This seems to happen mostly with the collections classes and not with another model class (ie classes that I either created separ...

Convert CGPoint between iPhone & CA planes

I have a UIView subclass that I'm drawing a PDF onto (using a CATiledLayer). I also need to draw on a specific region of that PDF, however the coordinate plane of the CATiledLayer when using CG to draw is way screwy. See image: I have a point (200,200), that I need to convert to the CATiledLayer's coordinate system, which is the 2nd ...

Setting a CGPDFObjectRef to value

Does anyone have a way to change the information contained in a CGPDFObjectRef? Basically since CGPDFObject can represent any of the subtypes (CGPDFInteger, ie.) you would think you could set an existing CGPDFObjectRef that is type integer to an integer; however, I have played with this for quite some time with no success and was wonderi...

UIPickerView problem about selecting first value

Hi all, I succesfully implemented a UIPickerView. However, I have a problem in selecting values. According to the standard way, I have implemented the method - (void)pickerView:(UIPickerView *)thePickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component { // method implementation... } The problem is when I try to sel...

Application loader error message (iPhone)

Hi everyone, Application loader is giving me this error when uploading an app to the AppStore: Missing argument for option: p What could it be? ...

Iphone 4 - Is it possible to capture a camera event (takePicture) in a background application.

Is it possible to have a background background app. notified in case of a camera event generated by the native OS app? ...

saving files to cocoahttpserver in iphone

I need to download a file from an url and save it to local cocoahttpserver I have in my iphone app so that later i can access it using something like http://localhost/filename.txt I have the cocoahttpserver code. But I am unable to figure out how to save files to it. Any help would be great. Thanks. ...

How to listen on a network port in Objective-C

Hi! I am trying to make an application for iPhone that can listen for traffick on a specific network port. A server on my network is sending out messages (different status messages for devices the server handles) on a specific port. My problem is that when I make a thread and makePairWithSocket I block the port for others who want to s...

How to install two or more copies of the same application on iphone?

Can user via appstore install a few copies of the same application to his iphone? I really want to have many instances of the same application... ...

iPhone SDK Managing Memory for Multiview app

I have an app that programmatically creates labels and text fields based on the contents of a text file. Whenever the view controller is loaded, it creates text fields and labels that are different each time. My problem is I need to clear out the labels and text fields without releasing the view controller since I need to keep track of t...

Interface Builder - Accurate Layout

Hi, I am working on a GUI in Interface Builder for an iPhone app. In my view controller, I would like to have a toolbar at the top and then some controls (i.e. a view) that are centralized in the lower portion of the view. The problem that I am having is that I want things to be centralized in the area below the toolbar but the whole ...

How should I organize a project with three distinct views and no tab/tool/navbars?

I've spent too much time walking down dead ends on this project, so it's time to query the hive mind: I am making a simple iPad game consisting of three locations which the user navigates between when an area of the screen is touched. These locations are represented by fullscreen images and there are a lot of different animations and st...

Animate the resizing of a UIWebView

Hi everyone. I'm having a really hard time trying to animate the resizing of a UIWebView, and just don't know where else to go. Here's what I want to accomplish: I have two views, one above the other (imagine two squares, one on the top of the other). The top view is a UIWebView, and the bottom one will be referred to as a general UIVi...

Exception text in crash log?

I have received a crash log from a beta tester. The crash log was only partially symbolicated (don't know why), but it is caused by an exception: 9 libobjc.A.dylib 0x000048cc objc_exception_throw + 64 10 CoreFoundation 0x0009be8a +[NSException raise:format:arguments:] + 62 11 CoreFoundation ...

UISlider to represent the color spectrum

I have a UISlider that is supposed to update the color of a textlabel. Now I want the user to be able to choose between all colors in the spectrum (sort of all anyway). I was thinking of using this UISlider to represent the colors and when dragging the slider the value/color changes. I know the spectrum is not sequential like: [0,0,0].....

UI updates from SKPaymentTransactionObserver methods

I cannot seem to get my UI to update when my object that implements SKPaymentTransactionObserver is called. Specifically, I have a (UILabel *)debugLabel in my UI (all wired up via IB). I have my implementation of the observer protocol: - (void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions { NSLo...

Problem with UIWebView

Hi, I am trying to launch an external safari when I click on a hyperlink in UIWebView but in my case nothing happens. If I try to include target as blank and skip the UIWebView delegate method it launches the safari within the same view..please guide me friends how to open an external browser when tapped on a link in UIWebView..here is ...

NSCalendar to Display Weekday

Hello, Im using an NSCalendar to display the week day, I have no problem displaying the weekday in an integer, but i am confused as to how i might get it to tell me the weekday, i.e. "Thursday." I read that %A, and %a might do the trick but I do not know how to implement them. My code is below. NSDate* now = [NSDate date]; NSCalendar *...