iphone

how access mysql remote database in iphone

hi all, i m using remote mysql database in my application. please give any idea how i connect the mysql remote database. i search many references but i have not get any exact soln for it. ...

UILongPressGestureRecognizer issue

Hello, i have one issue regarding UILongPressGestureRecognizer, i have add gesture like below of the code **ViewDidLoad** UILongPressGestureRecognizer *_longRecognizer = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(ICN_TRASH_Click:)]; NSArray *recognizerArray = [[NSArray alloc] initWithObjects:_longR...

NSUserDefaults flexibility for version updates

Hi, I am using the NSUserDefaults' api -registerDefaults api to register the factory defaults of my application. All is fine for the first version of the application. But when I provide an update for the iPhone application, I have 3 criteria to make sure: The user preferences of older version app should be intact. Addition to the fact...

Difference between performSelector, performSelectorOnMainThread and performSelectorInBackground

What is the difference between performSelectorOnMainThread performSelectorInBackground performSelector Thanks ...

IPhone OpenGL Textures

Hello, I have been trying to port an older game of mine to iPhone using OpenGL(for the first time). And I have a question about textures; The game consists of characters that walk around and do stuff, each animation has been painted in 8 frames (64x64 pixels each) and in 8 directions. Therefore, a single characters walk animation has 6...

View controller chain

I have a Navigation Controller with a root table view which has several links. Tapping each link moves to the next view (by pushing it to the navigation controller's stack). But suppose that in that "next view", I have a UIButton that should take me further to another view (by pushing on to the same navigation controller's stack)... Vie...

Why doesn't iPhone adhoc distribution in iOS4 (xcode 3.2.3) work?

Before iOS4 I could successfully build my App using the Adhoc distribution profile and send it to my clients for testing. Now under xCode 3.2.3 when I (and my client) drag and drop the .app folder into iTunes, the App does not appear among the list of apps and no message (error, warning, etc) is displayed. Is there a known problem wit...

iPhone Int with NSObject &/causes class can't reference itself

I've got a function called updateTheValue() that I have called using [self updateTheValue] for a while now. Two things happened recently; I added the method calling in the viewDidLoad() method and it spit out a warning saying my class may not respond to this. Second, I want to pass objects to updateTheValue() like strings, but mostly int...

Autosize UILabel

Is there a way to auto size a UILabel? given size 40 x 40 the text font size would adjust based on the number of characters. ...

Unable to have two versions of the same app on the one iphone

Hi there! I have two versions of my app. I'm trying to keep a copy of each on my iPhone for testing purposes. In my build settings, my bundle display name is ${PRODUCT_NAME} and I've given each version of my app a different product name (eg "v92" and "v10"). When I install each version to my iPhone, they both appear side by side with d...

How do I change the name of my iPhone application?

HI everyone! i have application that uploded via other company(not my company) i decided to upload the application via my comany so... i can't upload my app on the same name as the company uploded alreday. there is a way that the other company can delete the app from app store or rename the application name, so i can upload the app...

Designing a MIDI synthesizer/player for the iPhone

The design is divided into the following parts/features. However, I'm not very familiar with the capabilities of the iOS SDK. Midi Parser read and parse a binary file into an object Play a single or multiple sound files simultaneously can this be done with one or multiple lookup table? (a huge switch statement?) Manipulate dura...

UIImageView from array and touch? for IPhone

i have this method Code: - (void)addImageSubViewAtX:(CGFloat)x atY:(CGFloat)y { CGRect myImageRect1 = CGRectMake(x, y, 30.0f, 30.0f); myImage1 = [[UIImageView alloc] initWithFrame:myImageRect1]; [myImage1 setImage:[UIImage imageNamed:@"status_finish.gif"]]; [self.view addSubview:myImage1]; } now i am using this to call ima...

problem with intergating facebook session in iphone with objective-c

How to handle seesion in facebook . when user logs into my appliaction i want to keep the user logged in always which means that every times the user will open the application, he will not need to make login again. and when the user enter to my iphone applicaiton, the user should be shown as loggedin, and when i try to post to the user...

Xcode is stuck when trying to refactor a class

Hi, Xcode gets stuck if I try to rename a class via refactoring. It shows "Applying Changes" window and says "Please wait while changes are made." But changes are never made. It's stuck! How can I solve this problem? ...

Why do I need to do this and is there a better way? Animation blocks on iPhone app OS4...

So I have some animation blocks to create some very simple animations on my app (eg. a wheel spinning continuously). This is the code for the animation (I have changed if from the old commitanimations style block but was getting the same problem with that). [UIView animateWithDuration:30 delay:0.0 options:(UIViewAnimationOptionAllo...

Detect gesture accelerometer

hello I'm creating an iPhone application. My application needs to detect the movements of the accelerometer and report the case of movement by the user. In practice I have to constantly check that the coordinates received from accelerometer are equal to the coordinates saved in my movement. My problem is that its implementation is not si...

What is the use of the libobjc.A.dylib framework???

What is the use of the libobjc.A.dylib framework??? ...

problem with intergating facebook session

hello I am using Facebook in my music application where user post comment on wall paper after listening the songs . So problem arises that user have to login again for next song. so please provide me code for session retains when he clicked on the tab where it written "keep me login". Thanks ...

changing the colour of Button

how can I change the button colour when ever I click that button please help me out ...