iphone

How do you manage releasing an object created in an instance method on iPhone without autorelease?

I'm fairly new to iPhone development and I've hit a roadblock in my understanding of memory management. I've read through the Memory Management Guide for Cocoa and have read many, many questions and answers on SO, but have not found a complete answer. If I have an instance method that creates an object, every example I've seen seems to ...

How to stop UITableView moveRowAtIndexPath from leaving blank rows upon reordering

I am having an issue where in reordering my UITableViewCells, the tableView is not scrolling with the cell. Only a blank row appears and any subsequent scrolling gets an Array out of bounds error without any of my code in the Stack Trace. Here is a quick video of the problem. Here is the relevant code: - (BOOL)tableView:(UITableView ...

iPhone : Transfer of files from Mac/Pc to app

I need to transfer binary files from my pc/mac to my app. I want to allow my users to upload sound files. Am i going to have to run a web server that the user can connect to over wifi? What are the steps i have to go through to get this up and running? ...

What are the limitations on filenames saved to the iPhone?

I can't seem to find any documentation on this. Is there a limit to the number of characters that can be used in a filename and/or is there a restriction on what characters can be used in a file name saved by an iPhone app? Thanks. ...

Link to an iTunes song / album from iPhone app.

I'm making an iPhone app for a band, which lists songs for the band. When the user touches a button next to a song, I want to open iTunes and display that song. Currently I'm using this code: [[UIApplication sharedApplication] openURL:[NSURL URLWithString: linkLocation]]; where linkLocation is a link to the song in iTunes. This works...

Adding a new view on rightcalloutaccessoryview button press

Hello all: I want to add a new view on a rightcalloutaccessoryview button press. I currently have the functionality for dropping a pin on the map. A callout (MKAnnotation) with a title, subtitle, and chevron loads when I tap the pin. When I tap the chevron (rightcalloutaccessoryview) I want another view to pop up showing more informatio...

how to read .rtf file from the FTP server?

I know how to read text file from the ftp server.I have used this logic for rtf file.But it gives wrong out put.Is it possible to read rtf file from the server?If possible then please help me. ...

UISlider Multiple Touch Lag

I'm developing an game which has a component based on UISliders. The player must slide them from left to right one at a time, and on occasion two at a time. The problem lies in the double slides. When sliding two UISliders at a time, the sliders lag behind the player's touches, and often create noticeable lag in the game (this was tested...

How to fix an imageView to another and move both together?

Hi, all! I'm developing a game in which I have a bow and arrow. I have to move both bow and arrow imageViews on touch through different angles for which I'm applying CGAffineTransform. The problem is this that after rotation, bow and arrow change their positions, so the arrow does not stay at the center of the bow. I want to fi...

how to add new controller already in zoom uiview?

My question is how can I add new view in already zoomed view. I want to add comment when user click on date of calendar. this comment pop-up should open such a way that it looks like pop-up started from date with zooming and and after adding comment, it should stop in zoom in at same date. Same like MAC OS is displaying when we click on...

NSData myView Leak

For my long search about nsdata there is some leaks still there .......................When we get value of nsdata from the website url leaks occur.... That website url contains html page means there is no leak in this code ....Else it contains xml page means it gives memory leak.. NSURL *url =[NSURL URLWithString:@"http://www.apple.com...

Saving the audio file in documents directory.

Hello friends, I am developing a application where i have to save the audio file and later mail it. Can you give me some idea regarding this like the format in which it should be saved so that it can be played later anytime and also mailed. So please let me know the step wise process or any sample code would be helpful. Thanks in advanc...

iPhone: Update All address (Home, Work, Other) of contact

hi all, i am creating a new contact programmatically. it work well except address. following is the code to add a contact ABAddressBookRef libroDirec = ABAddressBookCreate(); ABRecordRef persona = ABPersonCreate(); ABRecordSetValue(persona, kABPersonFirstNameProperty, tempSingle.firstName , nil); ABRecordSetValue(persona, kABPer...

Ascess the instance variable globally in objective c

I am new to iphone development.I want to access a variable declared in one view in another view.How can i achieve it.Whether it is possible by using extern variable, if so how to declare and implement it.Can i achieve it by using delegates?then so how to implement it.Please guide me.I am browsing google to get and idea to achieve it, i ...

Is it possible to set a fixed width on the UIImageView inside a UITableViewCell ?

I have a UITableView in which of course I use some UITableViewCells. Now some cells have an icon / image which I want to display in front of the text, and some others don't. I didn't create the UITableViewCells in Interface Builder, just using the default stuff : // Customize the appearance of table view cells. - (UITableViewCell *)ta...

Does Xcode have code autoformat feature?

Is any way to autoformat a source code in the Xcode IDE? ...

How to stop a LaunchDaemon in iPhone programatically?

Hi there I have a LaunchDaemon in my app. It fires perfectly on iPhone Start and keeps firing after a specific amount of time, but now i wanna know is there any way i can stop that launchDaemon and make it not fire if some condition is reached? ...

how to create product references of In app purchase?

if i want to test in app purchase, how can i create product references in ITune connect? it force me to select some application in my iTune connect, or i want to create dummy App on iTune connect? could you please tell me step by step to create product references for test. ...

How to record/obtain sound samples 40ms iLIBC beep/silence

I want to record/Obtain a 40 ms sound sample which produces a BEEP (iLIBC). Does anyone know of any tool which allows me to do this? ...

String truncated in Core-Data on iPhone

I have an Entity (Article) with an Class defined at xcdatamodel. In this class i defined an String NSString *test; currentArticle.test = string; String is more than 50 characters long. But when i try to fetch the Stored Object with: Article *article = [fetchedResultsController objectAtIndexPath:indexPath]; then article.test is tru...