iphone-sdk-3.0

why does MPMovieLoadState have state 5 ?

I find MPMoviePlayerController.h,there is enum { MPMovieLoadStateUnknown = 0, MPMovieLoadStatePlayable = 1 << 0, MPMovieLoadStatePlaythroughOK = 1 << 1, // Playback will be automatically started in this state when shouldAutoplay is YES MPMovieLoadStateStalled = 1 << 2, // Playback will be automatic...

NSDateComponents returns a different Seconds value in iPhoneOS 3.1.3 compared to iOS4

I use this method to turn a time interval into a string of the form MM:SS NSTimeInterval testTime = 60.0; // for example NSCalendar *sysCalendar = [NSCalendar currentCalendar]; NSUInteger minuteAndSecondComponents = (NSMinuteCalendarUnit | NSSecondCalendarUnit); NSDate *intervalDate = [NSDate dateWithTimeIntervalSinceNow:testTime...

How to I navigate back to a previously loaded xib file?

in my app I have three views. Originally the appDelegate opened the xib file for the mainViewController, and the preset settings on my application template included a flipsideViewController, which would be shown when an information button was hit. Later I decided to include another view controller and xib file, called CountySelectionVie...

Add UIButton after parser (on seperate thread ) is complete

I have been trying to add a button after a parser ( on a seperate thread ) is complete. I understand you cannot interact with UI elements on any thread other than the main thread. I do not want to use a timer, or a while statement... so my question is Once the parser is done what do you suggest I do to add the button to the view? I do ...

Code for the expansion and contraction of the table view cell to display the text of a particular cell in iphone??

Hi, Can any one give me the code for the expansion and contraction of the table view cell to display the text of a particular cell in iphone. ...

Preload cells in tableView for use with mapView

I have a mapView and tableView, with each annotation in the mapView corresponding with a cell in the table. What I want to do is select the appropriate cell anytime an annotation is selected on the map. As of right now, im creating an NSDictionary when the cells are created, which maps the row number to the annotationID. This works, ...

changing the title of standard tabbar icons

Hi, Is that possible to change the title names for standard tabbar icons provided by apple. Say for standard download the icon is like a down arrow with a text download, when i try to change the title in the interface builder it is not getting reflected as expected. Instead the icon is changed to question mark ...

steps necessary to create and install the proper certificates and profiles into my project and onto my iPad/Phone

Howdy all, I am hoping that someone on this list is working with iDevices, and has successfully built an application and loaded it onto their iDevice. If so, could you point me to any sort of 'distilled' explanation of the steps necessary to create and install the proper certificates and profiles into my project and onto my iPad/Phone s...

Get URL File Size before parsing

Me again! I am using NSURL to get a file then parse it. I have been looking for a couple of hours now on a progressbar i am trying to implement in my app. I know I first need to get the file size, then keep updating how much data i've downloaded as I continue to pull. I have seen the example using "ASIHTTPRequest" but is there a way to d...

how to set UIPickerView's current selection.

I have a picker View in one xib file, and a map View in another. The user selects a map view with the picker View, and the clicks a button, which loads the mapView. However, when I return to the picker View xib file, the picker View goes back to the default selection. How do I make the picker view automatically select the mapView that th...

'NSString' may not respond to '-hexIntValue' warning, function works fine

I'm taking a hex color value received as a string and converting it to an int so that I can get the proper hex values. I have the following code underneath my imports: @implementation NSString (HexIntValue) - (unsigned int)hexIntValue { NSScanner *scanner; unsigned int result; scanner = [NSScanner scannerWithString: self...

CFPreferencesCopyAppValue not working under iOS 4

I am storing a username in CFPreferencesCopyAppValue. Under iOS 3.1.3 it works as expected but in iOS4 it stores it while the App is open but as soon as its closed (using the multitasking close ability) the variable isn't stored, ie on relaunch of the App its null. I have a feeling it might be an issue with the multitasking as the App i...

minimum application size for my iphone application??

i am developing a application which contains many images which appear on different buttons click and has an mp3 file too..When i checked the size of my .app file it is around 6.8 mb which i think might be too large?? is there any way i can reduce the size of my .app file though i think reducing the size of my images(already around 15kb) ...

Change Product Identifiers after In App purchases gets rejected??

I developed In App for my application and tested it with a test id and it all worked fine.But due to a different bug my application got rejected.After resolving the bug i resubmitted the application but now pple rejected it saying The subscription in app purchases have been rejected. A rejected in app purchase cannot be reinstated. ...

UIView Animation callback?

can I setup a function to be called once my animation is complete? I want to fade a view and then remove it from the superview. ...

Accessory View in UITableView

Hi All, I have a doubt in accessory view in UITableView. The doubt is Is it possible to add more than one button in UItableviewcell using accessryView if so plz guide me. thanks in advance ...

"On duplicate key update" for core-data

Hi, I would like to know if there is some kind of similar functionality or way to preform an "on duplicate key update" function with core-data as there is with MySQL. What I want to do is to save an object to the database every time a user presses a button. But if the button is already pressed I want to update the row with some new val...

Will (GKPeerPickerConnectionTypeOnline)Gamekit framework in Online Mode find peers over the internet or only in local Wifi network??

In my iphone application i want to do peer to peer connections over the internet. So does GKPeerPickerConnectionTypeOnline in Gamekit framework support P2P over the internet or is it only for local Wifi Network. ...

How to remove annotations added as MKAnnotationView objects

I am new to using MapKit framework. I am adding an image to MKAnnotationView object at specific lat-long pair on map, say at (latA, longA). For the next iteration, i need to remove the annotation added and add new annotation at different lat-long pair, say at (latB, longB). Let me know of any help. Thanks @dity@ ...

changing provisioning profile after replacing rejected binary??

so my first official application got rejected as it was crashing on ios 4.0 for which my application was not even made for( i didnt even check the option for ios4 tested ).Now after resolving the bug i need to upload my application to the store.Should i create a new APP ID and a new distribution profile or just a new distribution provisi...