iphone

Navigation controller display problem when pushing

I'm not sure if more code will be needed to help me troubleshoot this problem, let's try this first... I have a navigation based app using core data. My rootViewController displays the first level of my data perfectly fine. When I push another instance of rootViewController (the first 2-3 levels of my data have exactly the same display ...

UIView Callout Bubble

Hello, I want to be able to do something like the MapView callout when a user touches a UILabel in a standard view. This is not a map view! Or can I hover over a new UIView? Can anyone point me in the right direction please? Thanks, ...

Vertical UITabBar

I wanted to make a UITabBar that when device-Orientation changes the icons of the TabBar match. Anyone who has used a Palm Pre/ Web OS device camera will know what i mean. At this stage i'm just interested in hearing different approaches to the problem. My solution is (theoretical) Subclass UITabBar, listen for the orientation change, ...

GPS precision in map kit isn't that precise as in Maps.app

Why is the precision of my location in Mapkit not as good as in the maps app? The accuracy is set to best. If i'm trying to get my location in maps.app i have an acc of 50m in my app i habe 500m. What am i doing wron :)? Any tipps to get a better result? Thanks for your help :) ...

- (void)applicationWillResignActive:(UIApplication *)application never gets called

I'm trying to handle phone calls and standby and things of that nature. I added the function - (void)applicationWillResignActive:(UIApplication *)application and - (void)applicationDidBecomeActive:(UIApplication *)application to my UIApplicationDelegate. When coming out of standby, "applicationDidBecomeActive" always gets called. ...

Switch between scrolling views with swipe?

What would be the best way to set up a group of views where each view acts as a scrolling view (can be scrolled up and down). And you can switch between these views with a swipe to the left or right? ...

Battery Percentage - Getting An Accurate Test On Any iPhone

Hello all, I am looking for a way to run an accurate test on an iPhone and find how long it takes for battery percentage to drop. While considering this I thought Would the temperature of the battery make a difference to my result i.e If I took my iPhone outside and ran the test would it be consistent with the test I ran indoors? Does...

Using setSourceType with image picker up hides status bar

I am pretty sure this is a bug but I thought I would check. I used the camera overlay to add a button so that on the iphone a user can switch from the camera view to the photo library. When button is taped the source type switches fine but the status bar is missing from the photo library. Throughout the rest of that session the status...

Should I use Table View or one long chunk of HTML for iPhone?

I'm making an application for the iPhone. Essentially it'll be a guide of sorts, and all the generated information will be in one long window. Each block of information can have a 'link' in it to generate another block of connected information (for example a block about Wallace could link to a block about Gromit) that would appear at the...

What's the best lightweight option for scrolling styled text for the iPhone?

As far as I can see (correct me if I'm wrong), there seems to be no obvious way to have a scrolling page of styled text (diff fonts, weight, sizes, colors etc of text) on the iPhone without resorting to a UIWebView, which seems to take quite a bit of memory and resources (and the scrolling isn't as smooth as a UITableView). Is there a g...

Best practice for data access from text file in iPhone app?

OK. I have an application which is using data that is stored in text files. The data is such that the application's users will drill down through a couple of levels of nested table views to get to the data that they need to access and alter, at which point any changes will be written back to the text files. As the drilling down through...

UIAlert on a Text Input

I have five fields for number input, and each of these fields must be in a certain number range. For example, Field One should be above 40 and below 100. Field Two should be above 1.25 and below 5.5. You get the idea for the rest. I am able to make an UIAlertView, but only for the button that is pressed to calculate each of the fields....

I-Phone VM for Android

I'm considering opening up a project to create an i-phone virtual machine for android 2.0 (read motorola droid) before i do so i have some questions: Does one already exist that i just missed? Can the the Droid's Arm Cortex A8 down-clocked to 550MHz (thanks wikipedia) handle an I-Phone abstraction layer? Performance wise the best thing...

setPropertiesToFetch method appears to always make request return faulted objects

Whenever I use setPropertiesToFetch on an NSFetchRequest, the objects that are returned appear to all be faulted. They return YES to isFaulted and when displaying them in the console they appear like this: < MyEntity: 0x5884850> (entity: MyEntity; id: 0x5886180 <x-coredata://4D96A1CB-187C-4D92-A50C-D639F7E69114/MyEntity/p197> ; data: <f...

setting view's background image in iphone

Can I set an image for the view's own background image? I don't want to use UIImageView control. It seems not to be possible using IB. Do I have to do it programatically? Thank you. ...

Using performSelectorInBackground to load UITableViewCell image in background, performance

I have a method for loading images for UITableViewCell in the background. I use performSelectorInBackground. The problem is these threads are finishing and loading images even though they may not be on the screen anymore. This can be taxing on resources, especially when the use scrolls quickly and lots of cells are created. The images ...

Determine current iPhone OS version at runtime and compare version strings

How can you determine and compare (>, <, etc.) the current OS version of the iPhone that the app is running on? There is a certain bug in 3.0 but not in 3.1+ so I'd like to be able to skip out a bit of code if the current OS version is not >= 3.1. This needs to be at runtime not compile time! ...

NSUserDefaults - How to tell if a key exists

Alright, so I'm working on a small iPhone app, and I am using NSUserDefaults as my data persistence. It only has to keep track of a few things, such as some names and some numbers so I figure I might as well keep it simple. I found this page for some reference, but I don't think it can answer my question. Basically, I want to be able ...

Wrap text in a UILabel with quotes?

By default, UILabels truncate text and then put an ellipsis on the end. How might I wrap all the text, including the ellipse, in double quotes? ...

Adding UILabel on top of UITableView

I have an iPhone project with a NIB that only has a table view (UITableViewController). My delegate loads the nib (and associated controller) and all is well. Now I'd like to have UILabel show up when there is no data to show in the table view. Revisiting the NIB it occurred to me that only the File's Owner, Delegate, and the Table View ...