iphone

iPhone MPMediaQuery for random tracks

Hi stackoverflow! I'm writing an iPhone application where I am looking to pull batches of, say, 10-20 random tracks via an MPMediaQuery, since performing a query for all tracks and selecting random tracks from that query results in an inordinate delay on launch. If a query for a few random tracks is not possible, is there a clever workar...

EXC_BAD_INSTRUCTION with URLConnection initWithRequest

I have a weird error that I cannot seem to find any documentation or posts for. When I try to connect to my web service (changed URL for privacy) using the standard textbook method, I receive EXC_BAD_INSTRUCTION or EXC_BAD_ACCESS on [NSURLConnection initWithRequest]. The weirdest thing is that on occasion I can step over the offending ...

converting the caps in the NSString into small

Hi all, I have a issue while doing some encoding with the string. It returns all teh values in CAPS . I want it to be small. IS there any api available in objective C to convert the caps in the NSString into small alphabet. Any help would be greatly appreciated .. Best regards, Mohammed sadiq . ...

Private Api in MPMoviePlayerController

Hello All, Can we use private method in MPMoviePlayerController e.g: -(void)setOrientation:(int)orientation animated:(BOOL)value; for playing movie in portrait mode. Did apple approve private api? ...

DidChange or Animation done event caught from UIPickerVIew selectRow inComponent?

Hi I have a 2 component UIPickerView in my UI. If my user selects an invalid value in the first component I compensate by animating the component(Wheel) next to it in a way that makes the entry valid. When this animation is done I need a label to update. I usually update my label on pickerView didSelectRow, this is however not called w...

cocos2d sprite animation

Hi all, How can I change an image position in cocos2d like background-position in css? By position I don't mean the position of background like ccp(200,150), I mean for example, I have an image with resolution of (1000,200) that contains 5 (200,200) images. I show this image in (200,200) sprite and I want to change the image position so...

question regarding the warning that comes everywhere

Hi, Would you be able to help to delete the warning discussed below ? I have one file example.h In that I declared static const NSString *variable = @"cool"; Now, I have another file multiple.m. In this file I have a function Bool var2 = [object methodname:variable]; It means, I passed variable as parameter for this function, but ...

iPhone: Forcibly Update SBFakeTimeString

I want to create a program that displays the clock in hexadecimal (geektime.org format) in place of the current time. I know that it is possible to set a custom string in that location in the com.apple.springboard.plist file under the SBFakeTimeString key, but it only updates when the status bar is refreshed (ie goto/from springboard). ...

iPhone- How to save the view controller object itself?

Hi, I want to save the state of my view controller. I searched and found that I should save the state by saving state variables. But I am interested in saving the view controller object itself. Is there any way to save the view controller object itself so that when I restart the application I see the same view state too on which I was ...

mailto with empty recipient?

Hi all, is there anyway that i can use "mailto" with empty recipient?? i only want to supply the subject and the message body and then the user can write the to addresses on mail. i tried writing only a space but it didn't work. Thanx in advance.. ...

Looking for concept for managing game level views, level selection views, preferences view, storing levels, environment variables.

I'm developing a puzzle game application - watch on youtube - for iPhone, and the actual "in-game" part is almost done. It is a separate Class (subclass of UIView) what initializes with a puzzle clue, puzzle pieces, and is ready to send a message for somebody if the puzzle has solved ("completeness" check invoked on every touchesEnded). ...

iPhone + file upload control

Hello, I have an application which uploads file from iPhone to web server. Problem is that I want to give users a control like from which they can select the file / photo from the device and which is than uploaded on server. Can anyone help me ...

Directions and Route in iPhone using Bing Map

Can we load a Bing Map in iPhone and show Route between source and destination points thourgh some waypoints. ...

Can I send push notification on iPhone based on its location (without the app running)?

I have this requirement from client where depending on the location of the iPhone we need to send push notification. Now how can we find location of the iPhone without the app running in background? Is there anyway we can achieve this? ...

Example of ASIHTTPRequest with TouchXML .

Hello all, I am currently using NSXMLParser mathods to parse my data something like this : But I found some good option as TouchXML . I googled for some good example or tutorial But I can't understand the XPathquery format and the parsing loops as done in this example or this question I just want to know how to parse a simple ...

Why does rotation of iPhone cause crash when _existingView message is sent to deallocated object?

I have two view controllers: MyParentViewController and MyChildViewController. The application starts with MyParent. I push the MyChild controller to the top of the navigation stack, so that the chain is like so: MyParent > MyChild I log the object ID of MyChild with NSLog(@"%p", self): 2009-11-20 05:08:29.305 MyApp[2213:207] MyChil...

How to make a server send a processed data back to the invoking iPhone?

I am sorry if the title is unclear. Allow me to elaborate further. Firstly, I have an application on an iPhone that will allow the user to upload a data to server. We simply use php to allow the user to upload the data. Secondly, the server will process this data and then return the processed data back to this iPhone. This part is the ...

iPhone - return from an NSOperation

Hi I am using a subclass of NSOperation to do some background processes. I want the operation to be cancelled when the user clicks a button. Here's what my NSOperation subclass looks like - (id)init{ self = [super init]; if(self){ //initialization code goes here _isFinished = NO; _isExecuting = NO; } re...

AtlasSpriteManager animation

Hi all, I am using AtlasSpriteManager and AltasSprite to create frame by fram animation with 1 one file. I wanna write something that at first show a simple picture, without any animation and for example when I touch it, it shows some animation and return to the first position and frame. I just can't show the first frame without animatio...

how to consume a WSDL web service in iphone?

I have a wcf web service which returns a wsdl response when I invoke the service.How can I consume a WSDL web service in iphone? ...