iphone

Is there a standard way of playing longer sound clips?

I'm currently using AudioServicesPlaySystemSound(_soundID) to play sound clips. My understanding is that this can only be used to play clips under 30 seconds. What is the standard way of playing longer sound clips? ...

UITableView row animation duration and completion callback

Is there a way to either specify the duration for UITableView row animations, or to get a callback when the animation completes? What I would like to do is flash the scroll indicators after the animation completes. Doing the flash before then doesn't do anything. So far the workaround I have is to delay half a second (that seems to be t...

What is the "normal" filesize for an app?

Hi there My app compiles to about 80mb. I was under the impression this was quite large. However it does have video content, high resolution images and we're charging ₤3.99 for it on the App store. What would be "large" for an app? For instance, would you say 80mb was large? What would you say the limit is (realistically). Thank you v...

UITableView with Sections and Parsed Data how to create cellForRowAtIndexPath

I am having trouble setting up my cellForRowAtIndexPath with Sections. If I were to just show all "tracks" without separations of sections by "topics" then it works fine. Track *aTrack = [appDelegate.tracks objectAtIndex:row]; cell.textLabel.text = aTrack.track_title; I have already set up my numberOfSectionsInTableView, numberOfRowsI...

Can't edit UITableView frame.y

Have a nib file with a UISearchBar on top and a UITableView. wann add an button and some text on top of the UISearchBar's input. so i made (in viewWillAppear): [searchBar setFrame:CGRectMake(0, 0, 320, 90)]; works fine so far (except the position of the input needs to be vertically aligned to the bottom and not to center, any hints o...

iPad detailedViewController displaying thumbnails

Hi, I am a newbie and I am developing an iPad application. I am developing an application that gives a list of cars in the Root View and when the user selects a car make, the thumbnail images of the models are displayed in the detailed view controller. I was able to have a table but I am stuck as to how to display the thumbnails. I am a...

Playing video and audio in iPhone directly from server

Hi All, I have never played with audios and videos in iPhone. My requirement is : 1.When user selects from the list of podcasts(which I get from the server),I want to play an audio(mp3 file).I have the url for that mp3 file.He should have the controls for playing and pausing the audio(and other normal controls). 2.When user selects fr...

Animated annotation with updated title and lat / long as a subtitle ?

HI All, i am implementing the drag and drop functionality with a pin annotation ,but i face a problem when i get user lat / long and i reverse geocode it and give title to the annotation.Then what it does it lost its drag and drop functionality when i pass its locality title by reverse geocoding but when i put a static title on annotat...

What the difference in using async NSURLConnection from a static method with an object as delegate, and calling it IN an object with self as delegate?

When i try to send – initWithRequest:delegate:startImmediately: message to NSURLConnection from a class method, passing an ad-hoc delegate object, delegate methods never gets called. When, instead, – initWithRequest:delegate:startImmediately: is sent by an object, and the delegate of NSURLConnection is self, than all goes OK. Someone can...

iPhone SDK : Where is symbolicatecrash.sh located?

Trying to debug app. The trouble is I cannot find this program. symbolicatecrash.sh sudo cp /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Plug-ins/iPhoneRemoteDevice.xcodeplugin/Contents/Resources/symbolicatecrash /usr/local/bin/ Is it a separate download? I am using XCode 3.2.3 Thanks. ...

Fetch only the UniqueID column and populate array

I'm using the code below to populate an array from my ManagedObjectContext, but what I would like to do is to fetch only the unique ID numbers of each row matching my query (itemType = 1) and populate the fetchResults array with only these unique ID numbers. Is that possible? Any help is appreciated. lq NSFetchRequest *request = [[NSFe...

Unit Testing iPhone Code That Uses NSLocalizedString

I have an iPhone iOS4.1 application that uses localized strings. I have just started building unit tests using the SenTestingKit. I have been able to successfully test many different types of values. I am unable to correctly test any of my code that uses NSLocalizedString calls, because when the code runs in my LogicTests target, all of...

What does AudioServicesCreateSystemSoundID do?

What does AudioServicesCreateSystemSoundID do? All I was able to find was this from Apple's site: // Create a system sound object representing the sound file AudioServicesCreateSystemSoundID ( soundFileURLRef, &soundFileObject ); And It isn't very helpful. I always see it created but then never used. ...

iPhone/iPad context menu

Im talking about the menu that shows up when you select a block of text it gives you the option to cut/paste/copy. I figured out how to add one more option to the menu, but if I add two or more options it will say "more" first. clicking it will show all the options I added. But is there a way to show all the options I added upfront? with...

iPhone, how do I App Delegate variable which can be used like global variables?

Heres the code I'm using, see my error afterwards @interface MyAppDelegate : NSObject { NSString *userName; } @property (nonatomic, retain) NSString *userName; ... @end and in the .M file for the App Delegate you would write: @implementation MyAppDelegate @synthesize userName; ... @end Then, whenever you want to fetch or write u...

iOS - detect when more than one finger is on the screen

I'm looking for the best way to detect more than one finger on the screen at time. I'm not detecting taps or pinching, just the fact that more than one touch is happening. There don't seem to be any gesture recognizers for that. What's the best way? ...

Extracting Amplitude Data from Linear PCM on the iPhone

I'm having difficulty extracting amplitude data from linear PCM on the iPhone stored in a audio.caf. My questions are: Linear PCM stores amplitude samples as 16-bit values. Is this correct? How is amplitude stored in packets returned by AudioFileReadPacketData()? When recording mono linear PCM, isn't each sample, (in one frame, in one...

How to avoid multiple touch in Bar Button item in iPhone?

Hi frieds, I have created tool bar and set the UIBarbuttonItem in that tool bar.When i clicks the bar button, i have just removed one custom view. I want to avoid the multiple touches of the bar button items, because sometimes the user clicks the bar button items more than one.( It happens some time only). Here my sample code, UI...

How to pop up from a View before executing a piece of Code

Dear iPhone Developers, I am writing a Navigation based iPhone application. I want to execute a piece of code but before the execution I want the viewController to pop up. The method that I want to implement looks as follows; - (IBAction)executeTheCode { // set a BOOLEAN so that the user can not repeat the same action /...

Problems When Removing Annotations

I am attempting to loop through all of a maps annotations and check to see if it's a MKUserLocation annotation. If it's not I want to remove it so I can add some other ones. I am trying to use the code below but it crashes w /the following error: "Terminating app due to uncaught exception 'NSGenericException', reason: '* Collection <__NS...