iphone

Flip View for 2.2.1 iPhone SDk

I have an App that works great in 3.1.2, yet when I revert to 2.2.1 my method to flip the view doesn't work, using the following code: -(IBAction)infoButtonPressed:(id)sender { SecondViewController *second = [[SecondViewController alloc] initWithNibName: nil bundle:nil]; second.modalTransitionStyle = UIModalTransitionStyleFlipH...

Running an iPhone app with a 3.0 feature on a 2.2.1 device.

I've been asked to add a 3.0 feature (the Media Picker) to an app. But that app must continue to run on a 2.2.1 device. (With the feature disabled) How can I compile this, in such a way that it runs on 2.2.1, without getting a compiler error, for including a 3.0 feature? As per the instructions in the MailComposer example, I've set my...

Xcode: gcc-4.2 failed with exit code 1

Hi! I'm working on a game for the iPhone where I use the Oolong engine for rendering, and now I just tried to update my project to the newest version. However - now I get the following error when I try to compile: gcc-4.2 failed with exit code 1 in the build results I see in which cpp file the error happens, but I don't see any addit...

IPHONE - detecting if the device was jailbroken

Hi, I am trying to detect if an iphone/ipod is jailbreak. Then I thought the application could try to access a file outside its area, for example, try to see if MobileMail.app is there... here is the code NSString *filePath = @"/Applications/MobileMail.app"; if ([[NSFileManager defaultManager] fileExistsAtPath:filePath]) { ...

Iphone syncing via cable

Hi guys I've made an IPhone App that communicates to a service by calling a webservice and exchanging data as xml. For this to take place, there should be WIFI access. What I'm trying to do now is to do the same but in places without WIFI access. The only way I can think of doing this would be through the USB cable (dock cable?). Unfor...

Pre-render UITabBarController views?

I have an app with a UITabBarController that manages some UINavigationControllers, which in turn manage various UIViewControllers. On 3G phones, the first time I view any particular view via a TabBar button, it's laggy, but thereafter, it's snappy. This isn't noticeable with 3GS phones. My question is how can I force these views to pre...

iPhone SDK: control websites in UIWebView programmatically

I need to control a website that is loaded into a UIWebView like sending post data and using get requests. After each request the response should be loaded as a string into a variable. The reason for this is that I'm trying to fetch data from a website that has no public web api and using cookie based user authentication. So I want to l...

iphone quartz drawing 2 lines on top of each other causes worm effect

Hi, I'm using Quartz-2D for iPhone to display a route on a map. The route is colored according to temperature. Because some streets are colored yellow, I am using a slightly thicker black line under the route line to create a border effect, so that yellow parts of the route are spottable on yellow streets. But, even if the black line is...

calling function in a controller from a class (objective-c)

I'm writing an iPhone application in Objective-C. I created a class (Foo.m) which I would like to be able to call a method in the controller (MainViewController.m) which instantiated it. How do I do this? Please provide an example. Thank you! ...

How To Make Multi-view Apps?

I learn x-code first time. X-code is very complicated! Would you tell me how to make multi-view apps? (Step by step) ...

Is Library/Caches cleared automatically by the iPhoneOS?

I have an app that will need to cache some images. I have read some documentation about caching, and the logical thing to do is to cache my images within the Library/Caches directory within my app's sandbox. I understand that the reason for storing caches images here are: Library/Caches isn't backed up by iTunes Library/Caches is cle...

Background of UINavigationController view turns white

My iPhone application uses the camera to take pictures, which I suspect is somewhat memory-intensive. The app uses a custom background image for the view of its UINavigationController, and after taking a few pictures, the background goes all white. Any ideas on what I can do to stop this? ...

MonoTouch - Setting Bundle - iPhone

I am trying to create a app preference so that users can store prefs. In XCode I would click the "Settings Bundle" under New File. How do I do this in MonoTouch? ...

TabBar Controller question

I have an app that has four tabbar controllers views in it. When the app starts up, all four are loaded via SQL select statements. How do I tell it not to load these controllers at startup, but to do it when I select a value from the first screen? thx wes ...

Good HTTP library for Objective-C / iPhone?

What's a good HTTP library for (desktop Cocoa and) iPhone? Should just have a good interface to the basics like HTTP headers, get/post values (request string creation, URL encoding/decoding), sync and async requests... preferably pure Obj-C implementation. NSURL* is somewhat lacking. ...

Web Applications v/s SmartPhone Applications (Iphone, Windows Mobile, Android/Nexus Application)

Q: How does Web Applications differ from SmartPhone Applications (Iphone, Windows Mobile, Android/Nexus Application) and in what specific aspects do they differ and in what degree ? Also for example, Q: Why we need mobile version of Web Application like gmail.com or bankofamerica.com specifically for smartphone devices where we can a...

How to set a custom edit-style icon in a UITableViewCell while in edit mode

Is there any way to have a custom edit-style icon (besides the green plus and red minus icons) when enabling edit-mode in a UITableView? I know I could simulate the the edit-mode animation and just move the cell contents to the right and add a UIImageView, but I was trying to avoid that. ...

How can I call the parent TableView to reload

In this iphone app I'm trying to make it so that when you select a table cell it saves that action, pops the current view controller and calls the previous view controller (which is and always will be a TableView) to reload it's cells with new data. - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexP...

how to maintain state for so many views of particular application

I have 1 application. It has almost 32 views in hiereachy with back button. I want tomaintain state of each and every view and also if i bcak the state of that view also maintains is there any way to do it by code or by the setting I'm asking for iphone My simple question is if i put two text fields ...

Application not entering Fast Enumeration loop

after much debugging, I have determined that this code is ignoring the fast enumeration loop and blindly jumping to the end: -(void)loadOutAnnotations { NSLog(@"entering Annotation enumeration Loop"); iProspectFresno_LiteAppDelegate *appDelegate =(iProspectFresno_LiteAppDelegate *)[[UIApplication sharedApplication] delegate]; ...