iphone

Passing touch events to UIViewController's view

I'm trying to have my iPad app mirror the app's screen to a secondary screen via a VGA cable. Due to performance issues, I only want to have my view's displayed on the secondary screen, but still capture touch events via the iPad's screen. My current method is with two UIWindows: one for the VGA-connected screen that shows all the view...

Get ppi of iPhone / iPad / iPod Touch at runtime

Anyone know if there's a way to get the screen density (ppi) of the device at runtime? It'd be nice to not have to hard code the different densities in case apple switches it up in the future... ...

How to open another view from View Based Application

Hi Guys, I've created a new view based application and added button on it and I want to open another view on button click. I've added another view and trying opening from there but nothing happening. Please help me explaining step by step process of adding and opening second view from first view as I am pretty new in Iphone App developm...

UIImagePickerController - Setting a maximum video duration

Hi, I am using the following code to allow users to record video using their iPhone camera, and then upload it directly to my server. I would like to put a limit on the length of the video they can record (5 seconds in this example) and it looks like using videoMaximumDuration would be the obvious way of doing that, but it has no effect...

Getting possible dictionary key names?

How can I tell what options I have for objectForKey: calls? How do I know what values are non-null for the 'forKey' portion of the message? ...

Accessing string within an array within a plist iphone

I have a plist with root of type dictionary containing keys of type array, and each array has three items of type string. I want to access the strings and pass them to a view controller. This line is successful in my cellForRowAtIndexPath NSLog(@"Strings from plist: %@", [[self.aDictionary objectForKey:(@"%@",[self.keys objectAtIndex...

Hide Toolbar on top of iPhone Keyboard

Hi, is there anyway in javascript or HTML to hide the toolbar from iPhone keyboard. I only have one form input and I don't want the user to see the next, previous or done. If anyone can help that would be great, I am using PhoneGap ...

NSObject's 'description' method giving parentheses as output?

So, I'm debugging an app I'm building and using the description method to help me find the problem. But instead of giving me the app as a string it is printing out parentheses instead. Please help! Here's the code: - (void)viewDidLoad { [super viewDidLoad]; reminders = [[NSMutableArray alloc] init]; currentTitle = [[NSMutableString al...

confused as how to use componentsSeparatedByString on iphone

after nsXml pasring value of my NSMutable array AB =\n\n\n\thttp://xyz.com/uploads/resto_6298__20091209@1621_250.JPG\n\thttp://xyz.com/uploads/resto_6298__200912099_2_250.JPG\n" now i am doing this to make this url working NSString *sw=AB; NSArray *strings = [sw componentsSeparatedByString: @"\n\t"]; NSLog(@"what I have %@",str...

Is it possible to detect the current keyboard input method on the iPhone?

I want to know the current input method the user is typing in such as En (english), German, Chinese, etc... Maybe keyboard type is what I am after, but documentation seems limited on this subject from Apple doc. Thank you! Managing the iPhone Keyboard http://developer.apple.com/library/ios/#documentation/StringsTextFonts/Conceptual/...

How to change Xcode Install destination? (When installing iOS 4.x beta for example)

Hi, I am working on a project using iOS3.2 SDK and also want to test my app in iOS4.2 beta. So I installed Xcode and 4.2 SDK but it replaces previous Xcode installation. Up until now it was ok since I was not busy with these two things. But now I need both. How Do I change Xcode (with iOS SDK 4.2) install destination? I was expecting ...

ViewController not responding to didRotateFromInterfaceOrientation

Hi, My view controller is not responding to didRotateFromInterfaceOrientation, despite that I have added following in my code: - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return YES; } - (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { [self...

What to use if not "IPHONE UDID"?

Wow... look at all the "panic stories" online this week regarding using an iPhone's UDID. [[UIDevice currentDevice] uniqueIdentifier] What SHOULD we be using instead? What if the phone is sold to another user... and an app has stored some data on a remote server, based on the phone's UDID? (Of course, I want to avoid the problems w...

How do I display core data on second view controller?

I am working on my first core data iPhone application. I am using a navigation controller, and the root view controller displays 4 rows. Clicking the first row takes me to a second table view controller. However, when I click the back button, repeat the row tap, click the back button again, and tap the row a third time, I get an error....

Iphone: Question about approval process for both lite and full version

Hi, Does apple need to approve both of my lite and full versions separately? So if the approval process takes 2 weeks for an app. Do I expect it to take 4 weeks. Or do they usually review them both at the same time, or what? These are two separate apps (uploads) as I understand it? Thanks ...

virtual machine with OSX

I would like to develop an Iphone application, but I do not have a MAC. I would like to find out if it is possible to rent a virtual machine with a MAC OS so that I could develop on that machine. Does anyone offer that service? would it not make sense because I couldn't connect my phone directly to that machine? Or perhaps I could rent ...

IPhone: Should I use 'instruments' to verify memory leaks?

I've just kind of been 'winging' it with long tests (for hours) with no crashes, and eyeballing my code for quite a while and made sure that everything looks pretty kosher as far as memory leaks. But should I be using instruments... is it mandatory to do this before uploading to app store? ...

IPhone: Does my app need to support multitasking?

Is this now a mandatory requirement before uploading to the app-store? As I understand it, making my app compatible with multitasking is something extra that I need to implement. (?) ...

IPhone: Resources to learn 'instruments' ?

Hi, I'd like to use instruments to verify is my program doesn't have any memory leaks. Can you please provide me with some resources or tips that helped you as you were trying to figure this out? Maybe some video screencasts, or something. This program is pretty complicated and I'm not too familiar with such low level profiling utils ...

Can you access an iPhone's phone number via code in an app?

Can you access an iPhone's phone number via code in an app? This seems like a security problem but I was wondering whether anyone could definitively answer it. ...