iphone

In app purchase on iphone.: How to receive your available products *before* someone may be able to buy it

Currently I am loading my supported products from a plist and after that I send a SKProductsRequest to guarantee that my SKProducts are still valid. So I set up the request, start it and get the response in: (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response Now, so far all functions...

Have NSXMLParser parse the contents of multiple URLs at once

I've been using NSXMLParser on the iPhone to parse out XML files from the web without any problems. I'm now in a situation though where I want to get the contents of three different URLs and then parse them all at once. I'm doing this by creating three NSMutableData instances, each filled with the contents of one of the three URLs. I'm ...

How to get the size (width) of a particular UIBarButtonItem?

Since a command like navigationController.navigationItem.leftBarButtonItem.width returns a zero, how can I get the size of the button? It is one of the preset UIBarButtonSystemItem's. ...

Is there a way to adjust the time displayed by the iPhone?

I'm just curious...on the status bar on the home screen and the lock screen, is there a way to change the time that is displayed??? I've been trying to find things on this both in SDK 3.2 and 4 but with no luck. Thanks for any responses! I really appreciate them :) ...

Login to a Remote Service (ruby based) from iPhone

Ok here's my problem in a nutshell I've built a web service from ruby on rails. I'm using restful_authentication to create and run the login but I'm also building an iPhone application to access my web service but I can't quite figure it out. I was wondering if anyone could help me figure out a place to begin. ...

How to obtain UITextFields from a singleton

I need just four parameters to drive the calculations in three view controllers. The parameters come from four UITextFields in the first view. I'm not using global variables but have developed a singleton class to enable the parameters to be available to each controller. I can reference the variables OK in the controllers but I don't kno...

How to access UITableViewCell's UITextView from the UIViewController?

I have created my own UITableViewCell with XIB file. There's an UITextView inside. However, I don't know how to access its features and use its outlets with the UIViewController. What's the way to do it? ...

Most Useful services/methods for Geocoding in Augmented Reality app for iPhone?

I'm building an Augmented Reality application in the fashion of Yelp, and need to access the geodata of various buildings in as accurate a fashion as possible. What is the most accurate Geocoding service available? Price is also an factor, but less so than the accuracy of the data. ...

moving label to centre of cell

i have created my label using this UILabel *label1 = (UILabel *) [cell viewWithTag:1]; i want to move my label to centre of the cell... can any one answer it.... thank you for valuable answers... ...

Method in RootViewController not Storing Array

I have an array initialized in my RootViewController and a method that addsObjects to an array. I created a RootViewController object in my SecondViewController. The method runs (outputs a message) but it doesn't add anything to the array, and the array seems empty. Code is below, any suggestions? RootViewController.h #import "RootVi...

Can you see the values of NSUserDefaults anywhere in the xcode debugger?

Can you see the values of NSUserDefaults naywhere in the xcode debugger? Just wondering if this is possible? Thanks, Nick ...

Question regarding ideal database implementation for iPhone app

So I have a question about the ideal setup for an app I am getting ready to build. The app is basically going to be a memorization tool and I already have an sqlite database full of content that I will be using for the app. The user will navigate through the contents of the database(using the uipickerview), and select something for mem...

How to get X,Y,Z rotations of vertices on a sphere at the origin?

Hey, I have a sphere in my game world and i would like to place a plane at each vertex on this sphere for debugging purposes. The planes should be orientated so that they lie flat against the sphere (perpendicular to the normals). The sphere is located at the origin, so all the vertices are relative to that. If my thinking is correct, i...

How to fill a fillable pdf from cocoa touch?

I was wondering if anyone had seen an example of using cocoa touch to complete a fillable pdf form? So far I haven't found anything. ...

HOWTO use UIWebView to display a downloaded file later?

How do I format an NSURL (what path, or path generator function) so that I can display a downloaded local file (NOT part of the application NSBundle) for use offline? The idea is to snag an HTML file, clean it up and stash it in the iFoo application specific storage area, then later use UIWebView to display it. Next, I go off to RTFM a...

iPhone app memory leak

Any idea why this code gives me a memory leak? As you can see, I'm running out of ideas as to what I can do to stop it. - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; NSArray *allSketches = [project.sketches allObjects]; NSMutableArray *temp = [[NSMutableArray alloc] initWithArray:allSketches]; ...

iPad View Rotation Duration

Hi everyone! When changing the orientation of the iPad, my app rotates its view very fast. It is difficult to perceive the transition between both orientations. I would like to increase a little bit the duration of this transition. Does anyone know how to increase the duration of this transition? Thanks! ...

Cocos2d on iPad at native res and not inside box

Hello all, So I can't seem to get my cocos2D app to run at native resolution on the iPad. All it does it run in the little box as if it's an iphone application. I have the latest version of cocos2D inside my app and used the templates to create the project. Any ideas? Cheers ...

iPhone animation with stretchable image

I got a UIView subclass that draws a UIImage as its background. The image is created using the stretchableImageWithLeftCapWidth:topCapHeight: method, it has round edges. I also use an animation block inside of which I resize my view. I had hoped that during animation, the drawRect:method would get called sometimes, which would result in...

How to make an NSURL that contains a | (pipe character)?

Hi all, I am trying to access google maps' forward geocoding service from my iphone app. When i try to make an NSURL from a string with a pipe in it I just get a nil pointer. NSURL *searchURL = [NSURL URLWithString:@"http://maps.google.com/maps/api/geocode/json?address=6th+and+pine&bounds=37.331689,-122.030731|37.331689,-122.030731&...