iphone

UITabBar without labels (like Tweetie 2/Twitter for iPhone)

I'd like to build an app with a tabbar in the style of Tweetie 2/Twitter for iPhone (that is, images with no labels). I can't see a way to do it with normal UITabBarController/UITabBar, and my current thinking is that it's actually a UIToolbar with a custom view controller that is pushing and popping views from an array to simulate the U...

UIAlertView with subview animating to new view crashes app

UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Congratulations" message:message delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"View", nil]; UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(110, 100, 80, 80)]; NSString *imagePath = [NSString stringWithFormat:@"%@", [Array objectAtIndex:x]]; ...

UIWebViewNavigationTypeLinkClicked event not getting fired for certain links

I am using a UIWebView as an embedded browser within my iphone app. I am using the shouldStartLoadWithRequest function to handle UIWebViewNavigationTypeLinkClicked events for links clicked by a user. It is working as expected for a number of sites, but not for all. For example: when I click on any of the links on website http://www.fo...

iphone bring up address book contact

I am having some trouble accessing the iphone addressbook. I have contacts with a home address, work address, etc. I want to be able to programmatically determine which contacts have an address on their record. then determine what type of address it is (home, office, work, mail, etc) Any help would be nice. I'm stuck! ...

UITableView - Select nearest row after row deletion.

like build in apple notes app, after you swipe to delete the selected row, it will select the nearest available row automatically. The logic should be: if row count > 0 then if deleted_row == last row then select deleted_row_index-1 row else select deleted_row_index+1 row end end i have try to implement the above log...

How to record sound on my key pressed on iphone

I am developing an application. i can play my button with a sound but how to record this sound. i've searched this coding in a week but i had nothing. all source is about recording voice. please help me. thanks ...

Custom transitions between view controllers?

Is there a good way to provide custom transitions between view controllers? For example, in the Photos app on the iPad, tapping on a photo album changes the navigation controller, but it also animates nicely into the grid of photos. Thanks. ...

iPhone OS 3.2 File Sharing Path

Currently I have this for my file path and file... NSURL *storeUrl = [NSURL fileURLWithPath: [[self applicationDocumentsDirectory] stringByAppendingPathComponent: @"Shared\PartyPlanner.sqlite"]]; This allows me to share the file with iTunes, but instead of just having 'PartyPlanner.sqlite' in the 'applicationDocumentsDirectory\Shared'...

Drawing rubber band line during user drag

In my iPhone app, I would like the user to be able to "connect" two of my views by: 1) starting a drag in View A 2) as they drag towards View B, a straight line with one end in View A and the other end under at the current drag point, animates in a rubber-band fashion 3) when/if they release in View B, the line is then shown between the...

Can an app on mobile phone(iPhone) start another app?

E.g. When you download pdf on the browser (PC) hit starts the Adobe acrobat..similarly...can any app find another app is installed or not..and if its installed...can it start? on iphone..when you click on a HTTP link from an app it starts browser automatically..similar.. ...

Is it possible to bundle a unique file for each copy of iPhone app downloaded from App Store?

Hi, I would like to verify the identity of each instance of the iPhone application that a user might use to connect to my service. To that end, I would like each instance of the iPhone app downloaded to include a certificate that I generate, or even some sort of UUID that I have generated. Does the App Store support the inclusion of uni...

How to find when iphone moving in X direction ?

How do I learn when the iPhone is moving in a particular direction (X-axis)? Can you show some sample code? ...

MKReverseGeocoder server returned error: 503

Hi all, Currently i am developing an iPhone application where i have to show user's current city and location for which i am using Mapkit Framework.When i build the application it works fine and show me the exact city details .But right now when i try to build the application again application shows following error message in my log /...

Reading in a 5000 line text file on the Iphone

Gday, I am trying to create a tiled map for my game, i have had this previously working using other xml methods but i had memory leaks and all sorts of errors. However i had a map load time of about 2.5 - 3 seconds. So i rewrote all of the code using NSMutableStrings and NSStrings. After my best attempt at optomizing it i had a map load...

NSArray containObjects method

Hi, I have a simple question regarding xcode coding but don't know why things are not performing as I think. I have an array of objects (custom objects). I just want to check if this one is within the array. I used the following code: NSArray *collection = [[NSArray alloc] initWithObjects:A, B, C, nil]; //A, B, C are custom "Item" ob...

Error:Variable is not CFString

hi all, I am using sqlite database to save data from our xib. When I add first time then its added successfully but when i repeat that process then it shows run time exception and exit from program,and shows variable is not CFString. ...

Prevent Application Shutdown iPhone

I'm building a little dialing program for my kids so that only 4 "safe" numbers are available for them to dial. I'd like to start the app, hand them the phone and have the app be the only thing running until they come back home. Is there a way to keep the application running and prevent the iPhone from shutting down the app? ...

How many android apps are open source?

I know that the android plattform is open source. What I am interested in is the share of open source Android apps, thus developers that realease their own apps under a open source license. Does anybody have an idea, how to get this information? ...

Best way to communicate between two or more iPads

Hello, In the past I've used the GameKit to connect two iPhones/iPods and synchronize some data. Now, I have to do the same but with more than two iPads. The idea is that they load data the very first time they start-up from a local .xml file. Then, they use the current data and update it on their local copy. There would be at minim...

Changing keyboard layout in UITextField causes memory leak

I have created UITextField in UITableViewCell in my app, and I receive strange memory leak with it. When I launch my application and tap this UITextField - there is no problem with it. I can type text in English, no leaks at this moment. But when I press globe button on a keyboard to switch to another language(for instance, Russian), I...