iphone

NSArray from NSString (in plist format)

Hi there. I use NSURLConnection to get the contents of a plist file from a remote server. On connection:didRecieveData: I add the latest data to an NSMutableString. Now my problem is adding this data to an array. So you have arrayWithContentsOfURL - which is synchronous - but i suppose I could just add the contents of the NSString to ...

Why my info.plist is not a working iphone info.plist

My first problem is that i don't want my apps stay in background once i'have quit it with home button. So i have added 'UIApplicationExitsOnSuspend' key in my info.plist file with boolean type. The value 'UIApplicationExitsOnSuspend' is not recognized by Xcode, and my app continue to stay in background ... Source of my problem is that ...

How to implement language translator facility in an iphone application ?

How to implement language translator facility in an iphone application ? I have found that for Online mode this works, using GOOGLE API :(for example) http://ajax.googleapis.com/ajax/services/language/translate?q=nature&v=1.0&langpair=en%7Cja But how to perform language translation in offline mode ? Any open source API availab...

iOS4.1, LLVM Compiler 1.5 for iPhone?

I have just started working on an old project using iOS 4.1 (Xcode 3.2.4) I have noticed when compiling using LLVM 1.5 that I am getting various errors that I don't remember getting before. Swapping to LLVM GCC 4.2 removes the errors so I am guessing its the LLVM compiler thats at fault. Does the LLVM Compiler 1.5 work when compiling fo...

HTML5 inline video on iPhone vs iPad/Browser

Hi, I've created an HTML5 video player (very simple) that works perfectly on the iPad and the browser. However, when I open it on the iPhone, I only get a play button which, when pressed, opens the native video player on a new window, on top of all my stuff. That means I lose access to my custom controls and time tracking (written in ...

How to set selection style as blue if each cell is added an cell back ground image in iPhone sdk?

Hi Guys, I had a problem to set the selection style as blue, I have added the cell back ground image so that i can not set the selection style as blue how can i make it if we added images to each cell. (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell *cell = (UITabl...

iPhone SDK 4 The version of iPhone OS on “” does not match any of the versions of iPhone OS

Right, I am running XCode 3.2.3 with the iPhone 4 SDK. I have paid apple and enrolled, added my certificates and provisioning profiles. Now, I have plugged my iPod into Xcode and clicked "Use for development". My iPhone is running iOS 4.1 and Xcode says - The version of iPhone OS on “” does not match any of the versions of iPh...

How to write covariant readwrite properties in class continuations?

Given the following example // MyClass.h @interface MyClass { NSMutableArray *queue; } @property (readonly, retain) NSArray *queue; @end and // MyClass.m @interface MyClass () @property (readwrite, retain) NSMutableArray *queue; @end @implementation MyClass @synthesize queue; @end I get a Property 'queue' type in 'MyClas...

Does iPhone developer REALLY needs iPhone?

For the sake of coding itself, I know that I don't need to buy iPhone as there's pretty good emulator. However, as I will develop iPhone apps for clients (will not have direct contacts to clients) via freelancers sites, do you think that I might get rejected (not chosen) by the contractor because I don't have iPhone at home? Do contracto...

Custom Classes not being retained

I have a NSXMLParser that parses YT's API. It then turns all the videos into a class I wrote called video. Then the class is put into an array. Then back at my rootviewcontroller I access xmlParser.allVideos (xmlParser is a class I wrote that is the delegate for the xml parser. Here is what I do with it in the viewDidLoad: arrayFromXML ...

Hide the cursor of an UITextField [Edited with a solution]

Now we have a UIButton styled as a combo button and custom methods to show a UIPickerView like the keyboard does. In our views with editable controls we detect if we are editing an UITextField or a combo button and then shows the usual keyboard or the picker in our custom way. But since iOS 3.2 UITextField has the inputView property and...

iphone application

i want to display an output of html text file in iphone using xcode? how to run and get output of html file ...

What should be passed into a :(NSString *)text

Hi guys, Feeling a little confused. I am trying to pass a NSString as an argument to this method -(void) setRightLabelText:(NSString *)text { rightLabel.text = text; } The code i use to call the method for(int index=0; index<5; index++) { NSNumber *num = [card.statsArray objectAtIndex:index]; StatView *statView = ...

how to display languages not supported by iPhone

How to display languages like hindi, sanskrit, etc in iPhone devices? These languages are not available in iPhone 3.0, so how to display them. ...

to display one view in another view by clicking button

hi guys i am new to iphone apps development please help me to show another view from one view using buttons ...

Sharing data between two classes

Hi, this is my first iPhone application and I'm using JSON framework to decode JSON sent from a server. I insert the data in a NSMutableArray from an AppDelegate file. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { responseData = [[NSMutableData data] retain]; ...

UIView mysteriously expand by 1 pix when added to as subview

I created a custom "component" made up of UIView and it gets added as subview on any visible view. What I found strange is that when it get added to a view the second time, the width got increased by 1 pix. This caused a problem when it expanded the background image and causes the image to blur out. Any ideas why a view will get expande...

iphone+inapp purchase determine the subscription period

Iam developing inapp purchases where I had a requirement where I have to give user a free functionality for 1 month after that I wish to charge him . is there is any sample code to store the user details for particular product and time duration(no of days) in case of subscription based product ...

Install Dev App on IPhone - Not in List

I have recently provisioned my IPhone to be a development device when I had version 3.1 of the firmware installed. I was forced to upgrade firmware last night due to 3.2 being the base supported firmware by the framework I am using. I am now running 4.1 of the iOS firmware. Before I did this the device showed up in XCode as a valid ta...

Moving a View Up

Ok, this might sound simple, but somehow I can't get this function to work . - (void)setViewMovedUp:(BOOL)movedUp { [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:0.5]; CGRect rect = self.view.frame; NSLog(@"%f",self.view.frame.size.height); if (movedUp) { NSLog(@"test Moved Up"...