iphone

Loading screen while UITableView performs "tableView:heightForRowAtIndexPath:"

I am using tableView:heightForRowAtIndexPath: to set a custom height for each table cell in a UITableView. This is an expensive operation but I have not found a way to speed it up yet (In the future I will be trying some of the methods mentioned by taber). For now I would just like to display a loading screen of some sort. it does not n...

Will my iphone 3gs app work ok on iphone 4?

So I'm currently making an app that supports both iphone 3gs and ipad (this is a universal binary app). What I'm wondering is how will iphone 4 users view my app, will they see it pixelated? will they not see it full screen since my iphone 3gs is on a smaller resolution? I don't have an iphone 4 yet but I'd rather just release this app...

How to recognize swipe gesture in UIScrollView

I'm trying to recognize left/right swipe gesture in a UIScrollView. I've tried to create UISwipeGestureRecognizers and associate them with the scroll view. It works but very rarely. Most of the time I do not get called. Why? How can I reliably get swiping left/right to work? Can I use the gesture recognizers or do I have to somehow hand...

How to embed Facebook "like" in an iPhone app?

I'd like to allow users of my app to like some URLs (one example is the home page of my app). Is there any example out there to illustrate how to do that? ...

Any alternaitve to the Google Map mapcurl?

Does anyone know how to mimic the map curl in the Google Map application without using the undocumented mapCurl and mapUncurl API? Ideally I would like to do the same thing as the Google Map application. If this is not possible, is there any way to 'slide' the map image up to show the options? ...

UITextField does not show any input text when added in UIAlertView

Hi, This seems to only occur with the new iOS 4 SDK. When I add a UITextField inside an UIAlertView, whenever I input any text inside the resulting popup, no text will show inside the TextField, even though I will be able to get the inputted text from the textField afterwards. This behavior does not happen when compiling against the old...

Memory Profiling in the iphone

Hi Can any one guide me in clearing the memory leaks in the iphone code. in xcode editor it does not shows any issues, so i hav uploaded my app to the AppleStore. they rejected my app. so kindly help me what is my issue? how to rectify it. Thanks in advance ...

Beginning Phone Applications Development

I've been developing applications for a long time now, but now I want to jump into Phone applications development. There are four main candidates: Nokia's Symbian Apple's iPhone Google's Android Microsoft Windows Mobile Phone Can anyone suggest one, considering documentation, market, samples and availabilty of emulators, I'm not a mi...

How to know the apps installed in iPhone

I am developing an application in which i need to find the apps which are already installed in iphone device such as Skype, facebook. I need to check it. Please give me code snippet if possible otherwise a link to get the solution. Is it possible or not. If this is possible, then how to disable the app also... Thanks in advance...... ...

My vector sprite renders in different locations in simulator and device

I'm implementing a subclass of UIView that displays a gauge dial with a sprite for the indicator. It has angle property that I can vary to make the needle point to different angles. It works, but on the same values for the position of the needle make it show up in different locations on the phone and the simulator. It's an iPhone 4, s...

iPhone how to cancel stop performSelector

In my iPhone app, i'm using the following function to do something after some delay - (void)performSelector:(SEL)aSelector withObject:(id)anArgument afterDelay:(NSTimeInterval)delay; Is there any way to cancel this performSelector and stop doing some thing after the delay? ...

how can i get images from local folder using UIimagePicker controller

hi i am new to iphone. what i need is i have to display list of images as grid,for that i found UIimagePickerController. But there is tutorials for getting images from gallery and camera album for UIImagePickerController .But i need the images that are getting from a local folder containing images (means folder that is in project) and di...

Cocoa/Objective C: Convert numbers to strings using Japanese unicode characters

Converting numbers to strings is no problem, but the string created uses ascii numbers. I am inserting the number in a Japanese sentence. The character itself is correct, say 3, for example, but the width and positioning should be a little different when typing in Japanese. As a result the number looks cramped up against the following ch...

Hide tab bar control in tabbar project

Hi, I am working on a tabbar project and in this i also have navigation controller. and i am doing below steps :- Show the main screen navigation from first tab to 5 next screens. and on the 6th screen i want to show the tabbarcontroller and want to show my other tab bar. i tried the below code :- self.navigationController.tabBarCon...

iPhone memory leak because of stringWithUTF8String

Hello all, i have the following code which shows memory leak for object favorite near the statement with stringWithUTF8String. i have declared favorites in the property -(NSMutableArray *) readFavoritesFromDatabase { // Check if database is present [self setDatabaseNameAndPath]; [self checkAndCreateDatabase]; // Setup the databas...

Camera Overview in iPhone for Augmented Reality App

Hey Guys I have the following simple Code : WhereAmIViewController.h #import <UIKit/UIKit.h> #import <CoreLocation/CoreLocation.h> @interface WhereAmIViewController : UIViewController <CLLocationManagerDelegate> { CLLocationManager *locationManager; CLLocation *startingPoint; IBOutlet UILabel *lati...

invalid Product Id's in In App Purchases iPhone application??

i just created In App Purchases for my new application and checked Cleared for Sale option. But when i test my application after 2 days its still giving me invalid product id's.. I didnt Approve them earlier. Do i need to approve the App Purchases too before testing them...Will that affect my application when i upload my final binary and...

iphone safari making phone call

is there something i can put in the code for a html page i am making for safari on iphone which can make a call when click on? something similar to: <a href="tel://1300111222">click to call</a> ...

Writing a sequence generator algorithm in objective C in association with GPS coordinates

Hello all, I am developing a location based iPhone app wherein a random generator algorithm is needed. The app loads up with a number of images which the user has to reach. An algorithm has to be written where in the sequence of images has to be drawn upon three factors: total time entered by the user to play the game, total distance and...

How do you dissable phone number detection in mobile safari

I have tried to disable phone number detection in safari for my web app but it still shows 7 character strings comprised of numbers as phone numbers. I used the apple provided meta tag but no joy. <meta name="format-detection" content="telephone=no"> Anyone else run into this problem and work around it? Thanks. Update: It looks li...