iphone

Make UITableViewCell expand when text exceeds space

I have a UITableViewCell and it is UITableViewCellStyleDefault. When I try to put text longer than the UITableViewCell, it truncates it. How do I make the cell expand to accommodate this text? ...

Flash Loaded Issue

I had dynamically create one Flash Player cs2, i had upload into my site, no of url link i had provided on my aspx page, when any one of the url is clicked,that url based flv viedeo will play..! In my case when i clicked url to play the video,player is loaded but is not visible, in the same window, but i had opened in new window in inte...

How to force an iphone application to restart automatically from the location it is closed by pressing HOME key

Hi, I want to develop an application in which if a method is in execution and user suddenly press home key. and the application exits. the application automatically restart and the method started to execute again from the point where it is closed.. Please guide me the best way.... Thankx in advance.. ...

Is there anyway to set values in the settings.bundle from within the APP

Is there any way to set/update values in the settings.bundle from within your app. I am fine reading in values from the preferences into NSUserDefaults but was wondering whether you can set values from within the app. I have a web-app which I am making a iPhone client for and was thinking to include the users account details in the sett...

Load XML file on seperate thread, overwrite old , and save.

Hey everyone... so Im trying to figure out how to do this. I have bounced around alot of forums to try and find my answer, but no success. Either their process it too complicated for me to understand, or is just overkill. What I am trying to do is this. I have an XML file within my app. Its a 500k xml file that i dont want the user to ha...

How to tell when a UISwitch inside of a UITableViewCell has been tapped?

How to tell when a UISwitch inside of a UITableViewCell has been tapped? My UISwitch is set up inside of the cell (generic cell) like this: UISwitch *mySwitch = [[[UISwitch alloc] initWithFrame:CGRectZero] autorelease]; [cell addSubview:mySwitch]; cell.accessoryView = mySwitch; And I am trying to detect a tap like this (but its ...

getting effect to image on iphone sdk

hi . i want build a photography app with effects . e.g. old images with brown or black and white filter , how can i process UIImageView to change color , brightness and .... thank you . ...

How i disable the alpha, alpha numeric and special character in UITextField?

Hi, Thanks in advanced. I want to disable or also i have does not give permission entering the alpha, alpha numeric and special character in UITextField i mean when user enter the alpha and special character in text box then i want to quickly message box pop-up to showing him u only have use 0,1-9 digit. Please give me any source code a...

How to do a RETWEET on an iPhone twitter app (MGTwitterEngine)

How to do a RETWEET on an iPhone twitter app (MGTwitterEngine) ...

Adding outlets to UIButton

For quickly mocking up UI, I'd like to be able to drag buttons onto a view in interface builder, then drag a connection from that button to the view that should appear when you click it. A subclass of UIButton is a little inconvenient to use in IB, so I'd prefer to add the behavior to UIButton itself. Unfortunately, it seems like outlet...

UIScrollview : scroll with 2 fingers and not one

Hello, I have a UIScrollView containing another wiew. This view need to handle single touch event for drawing. For this reason I would like to scroll using 2 fingers. I managed to get this working for 2.x SDK but it's no more working with 3.X series. Do you have idea/workaround for achieving this? Thanks in advance for your help :) ...

UIImageWriteToSavedPhotosAlbum Problem

Hi , i try to save a photo from camera after take a photo with a button . here is my codes: -(IBAction)savePhoto{ UIImageWriteToSavedPhotosAlbum(img.image, nil, nil); } -(IBAction)takePic { ipc = [[UIImagePickerController alloc]init]; ipc.delegate = self; ipc.sourceType = UIImagePickerControllerSourceTypeCamera;...

UITableView on iPad/iPhone like Mail.app

Hello, how can i made an UITableView looks like the Mail.app from iPhone/iPad? With an heading, the time/date in the right top and 3-5 Lines of text as subtitle? I cant't find anything about this. Thank's! ...

OpenAL causing leaks in my iPhone game. Help appreciated

Hi, I am integrating OpenAL in my iPhone game from code I found in this post, but the compiler gave me an error on this line of code: unsigned char *outData = malloc(fileSize);, so I changed it to this: unsigned char *outData = (unsigned char*) malloc(fileSize);. This got rid of the compiler errors, but seems to have thrown up two lea...

How to convert image sequences (PNG) into Animation File (gif/mov/others) (iPhone) ?

I have a sequence of images (PNG format) in my iphone app. It is saved in the app's sandbox doc folder. How do I create animation file from these images? I would prefer animated gif, but other types like video (mov/avi/etc) is ok too. I don't need audio. Just images. Thanks. ...

iPhone SDK: check if a UIAlertView is showing

I have a method that posts HTTP data and displays a UIAlertView if there is an error. If I have multiple HTTP post I will show multiple UIAlertView for every error. I want to show a UIAlertView only if is not showing other UIAlertView. How can I determine this? ...

Retrieve Itunes account when performing inapp purchase.

Hello experts! I have created an app which allows users to buy non-consumable content. The retrieving-ids-payment-process works like a charm but i wish too, when the transaction is completed and the request is made to download the content, I would like to save who has downloaded this content. In my observer i have implemented method: -...

Save downloaded content when in app purchase is complete

Hello experts! I have created an app which allows users to buy non-consumable content. The retrieving-ids-payment-process works like a charm. What i can't really figure out is how my content should be saved into the phone. The existing structure is that I have all my current content in Resources/packages/. For every package there is an ...

How do I force one method to be executed before another method?

I've got 2 methods. One method starts playing an audio file (.mp3), the other method updates a UIToolBar to show a button (PLAY or PAUSE). These two methods are called in the following order: //Adds some UIBarButtonItems to a UIToolBar [self togglePlayer]; //Uses AVAudioPlayer [audioPlayer play]; TogglePlayer does this: -(void)toggle...

UISlider won't display

I have been having a lot of difficulty adding custom track images to a UISlider. Whenever I do this, whether to a nib created UISlider or a hand programmed UISlider the slider refuses to display. Also, I even commented the track image code out below and the UISlider still refuses to display. There are other nib created sliders in the ...