iphone

Appcelerator Titanium Mobile: app.js not found

I created an app with Appcelerator's Titanium Mobile on my home machine. The path was /Users/[myusername]/Projects/ProjectName. I checked my code into Mercurial. The next day, at my office computer, I cloned the Mercurial repo, and then added the existing app. I tried to run it in the simulator and received the error: could not find...

Changing Size of Text on a UIButton ...

Hi Everyone , Client wants me to do something, i have just checked and i m quite sure its not possible. He asked to put a text on a Button ( UIButton ). (Default State Configuration) And when the user clicks it the text should enlarge. (Highligted State Configuration) I have checked by selecting Highligted State Configuration and then c...

How can I ensure that items in a UITabBar dim when disabled?

I'm having a strange problem with a UITabBarController in an app I'm working on. The tab bar contains 3 items. The app enables the first two tabs depending on whether a connection to a server is available. When the app first starts, the code appears to be working and the tabs aren't selectable when disabled, but they don't visibly dim an...

Memory Warning but Small Live Bytes

Hi everyone, In my application, I get a memory warning of level 1 and then 2 after repeating some action (choosing a picture + processing) several times and then a crash. The leak tool doesn't show any leak. I'm also following the Allocations tool in Instruments and my Live Bytes are roughly 4 MB, overall I allocate 113 MB. At maximum ...

How do you manage battery health of your development devices when is always plugged in?

I know this question is not programming related, so for this I made community wiki. Developers are the best guys to answer the question. I am addressed to those that do development on devices that runs on batteries, like phones, gadgets etc. Probably you are constantly develop for them, and therefor they are always plugged in and charge...

Have my UIPickerView having the same behavior than the keyboard.

Hi. So I have a UITableView where one of its rows is a UITextView. When the user is writing something to UITextView (using the keyboard) the user can scroll the tableview and select another cell. Everything works. When the user selects another cell, a datePicker appears, and the user can select a given date. I want the user to be able...

Transitioning to landscape rotation within a uinavigationcontroller

I want to push a landscape view from within a uinaviagtioncontroller, whose initial view is in portrait... So you click a button, or tableviewcell, and the screen rotates 90° into the new view.. How would I manage that? This is similar to how the Youtube app works when transitioning from movie info screen to the actual movie. (note: i ...

Make an iPhone InfoButton light/dark based on color behind it

How do I detect what color is under the InfoButton... so I can change the button from DARK to LIGHT? I set my view's color... but how do I tell if it's "kind of light" or "kind of dark"? Besides... I can't change the info-button from light to dark anyway. (read only) Ugh. Shouldn't Apple have some kind of a simple "cmdButton.doThisE...

Purge iPhone Keychain

Is there a way I can purge the keychain for my iphone app? Either a purge command or a listing of all keys so I can delete them myself. ...

SKProductsRequest delegate methods are never called.

This used to work for me but is now not working anymore and I can't figure out why. I have in-app purchase setup in my app. I confirmed that I have a correct set of product identifiers, matched by corresponding in-app purchase items in itunesconnect. The call goes out to Apple view [productRequest start], but I never get a response ba...

How to center the contents of a uiwebview on the iPhone

Hi, I have a map image in a uiwebview. It default loads in the top left hand corner. I would like it to initialize in the center of the uiwebview. Does anyone know how to do this? Thanks! ...

What is the equivalent to "UIImageView" on OSX?

I'm wondering how to get some nice sprite-animations on OSX - like the UIImageView provides for the iPhoneOS. NSImageView cant... but how can I solve this? ...

Setting UITableViewCell height is expensive

I am doing a comparison in - (CGFloat)tableView:(UITableView *)tblView heightForRowAtIndexPath:(NSIndexPath *)indexPath It seems like performance of my app really slows down when I check if a cell.detailTextLabel.text isEqualTo:@"None"; What is a better way of doing the comparison and setting the cell height? ...

Custom UITableViewCell with Subtitle style

I used this guide: http://www.bdunagan.com/2009/06/28/custom-uitableviewcell-from-a-xib-in-interface-builder to be able to create my own custom UITableViewCell with a nice background image in interface builder. But I would like the style of the cell to be UITableViewCellStyleSubtitle to still be able to use textLabel and detailTextLabel ...

iPhone Application and programming Updates

Hi When a user logs into my iPhone App. I store their userID and relevant information in [NSUserDefaults standardUserDefaults]. This way they are not required to log in each time they access my application. When my application is live in the app store and I make updates to the code will this information be lost - will they then be ...

iPhone SDK: How to add an image to a UIBarButton?

I have used the code below to create a button on the nav bar with an image. I can see the image but I can also see the border of the button around it. My question is, how can I get rid of the button border. All I want to see is the image on the nav bar, no border. UIBarButtonItem *settingsBtn = [[UIBarButtonItem alloc] initWithImage:[U...

Making a visual bar timer for iPhone

I've looked up all results for progress bars and changing the width of an image but it only refers to scaling, and the progress bars aren't customizable so that they fit other functions or design schemes... unless I missed that part. I'm trying to make a bar timer that crops off of the right over a period of time. I tried using an NStime...

single page for mobile/iphone and desktop

i have developed a mobile version of a page and it uses some mobile specific java and css i have come across many solutions to point mobile/iphone users to that specific page and desktop users to original webpage. but what i want is that i get both things in one page and when user is on mobile that certain part of javascript and css ru...

iPhone: How to make a proxy controller that can select different views+controllers

I have an app with a TabBar. One of the TabBar-connected views is actually variable: Upon first opening of that view, it shall show a login dialog. If the user logs in, the login view is finished and the actual data view is shown. Later, if the user goes back to this tab, the data view shall appear right away, so no more login dialog ...

Android dev time vs iPhone dev time

Hi IF someone has to develop the same application for Android and iPhone, is it more difficult to develop in one platform than on the other? Does it take more time? Lets think about the average app. Lists, text , buttons, fetch information from the internet. Person has same experience on both platforms. Thanks ...