iphone

Obj-C : Passing parameters back from a detailViewController in a navigation controller

Hi I am using a navigation Controller on an iPhone app. I am able to pass data forward when I push a controller into the navigation stack but how do I pass data back when I pop the controller. What I am basically trying to achieve is the root navigation controller view displays a number of fields that can be edited. A user then clicks o...

Using an IBAction method when it is not called from an action?

Are there any issues when using IBAction when it is not actually called from a user's action? If you have an action like -(IBAction)sayHello:(id)sender; You can call it from within your class like: [self sayHello:@"x"] The @"x" doesn't do anything, it just fills in for the sender. You can actually create an IBAction method withou...

How To Make iPhone App compatible with multiple SDK (firmware) versions

With iOS4 coming out soon, I have already planned to include an iAd in a future update of an app of mine. I assume that this will make my app unusable for anyone on a firmware lower than 4.0. Is there a way to change that variables and the .xib file based on the user's firmware? Cheers. ...

update app invalid help

hi all trying to update my app on itunes connet i get the following : The binary you uploaded was invalid. The executable name, as reported by CFBundleExecutable in the Info.plist file, may not contain any of these characters: \ [ ] { } ( ) . + * please i v searched the web no one encountered this error thanks ...

How to pass variables in options.nib to myOtherController?

Hi, I have a typical app with some settings in my options.nib. I can choose to turn on or off for the slideshow in options.nib. But how do I pass this variable to myOtherController? What is the typical method to solve this problem? ...

Is there a way to embed an mp3 player in a website that isn't flash based (so that the website is iPhone OS compatible)

I did a lot of searching for what I thought would be a pretty common question, but I came up with nothing. If there is another thread with a similar topic, please let me know. Basically, I'm looking for a way to have an .mp3 file play in a website without relying on a flash-based player. I've searched w3 schools and every forum I can th...

Why am I getting GKVoiceChatServiceUnableToConnectError? What's wrong?

I'm trying to implement GK's voice chat. I have the underlying network done over wifi instead of bluetooth. Between the simulator and my test device, I was able to accept the invitation. But immediately after, I get the call didNotStartWithParticipantID, with the following error: Error Domain=GKVoiceChatServiceErrorDomain Code=32002 Use...

Trying to find USB device on iphone with IOKit.framework

Hi all, i'm working on a project were i need the usb port to communicate with a external device. I have been looking for exemple on the net (Apple and /developer/IOKit/usb exemple) and trying some other but i can't even find the device. In my code i blocking at the place where the fucntion looks for a next iterator (pointer in fact) wit...

Can i pop to Specific ViewController?

Hello!I am using Navigation Based Application.I push First ViewController to Second ViewController and From Second ViewController to Third ViewController Now I want to Pop From Third ViewController to First ViewController.I am Performing This task using the Below Code but i application get's Terminate.Please any body give me some proper ...

i need to load view using .xib when button pressed (without using view controller for this xib)

i am having a existing view controller which having buttons ,when one of this button gets pressed iwaant to load a view to load to display text ...

nsdata to nsstring to nsdata

Hello everybody. I am calling the webservices. The web service returns data in xml format. Now the problem is the xml data is not being received in proper format. In place of "<", ">" it returns in html form . So i assigned the xmldata to a NsMutableString and replaced the escape characters so that the format of xml data is proper. Then ...

EXC_MEMORY_ACCESS when trying to delete from Core Data ($cash solution)

I have an application that downloads an xml file, parses the file, and creates core data objects while doing so. In the parse code I have a function called 'emptydatacontext' that removes all items from Core Data before creating replacements items from the xml data. This method looks like this: -(void) emptyDataContext { NSFetchRequest...

Reason for getting error in Reverse Geocoder Delegate method in the morning times.

- (void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFailWithError:(NSError *)error { NSLog(@"reverseGeocoder:%@ didFailWithError:%@", geocoder, error); } This method is getting called in morning times and it is not showing the placemark while running the application in simulator. From Afternoon it is showing the placema...

how to add Done Button to dismiss the Number Pad

I followed the tutorial http://www.neoos.ch/news/46-development/54-uikeyboardtypenumberpad-and-the-missing-return-key to dismiss the number pad, this tutorial add the button as sub view to the number pad, my problem is, in the same view i am using the text field to enter text also,so, how to differentiate the number field, and text f...

Reorder cells in a UITableView without displaying a "delete" button

I want to be able to reorder cells in a table, but not to delete or insert them. I want a picture like this: This image appears in Apple's Table View Programming Guige, but the code samples there produce a table with red "delete" buttons when the table goes into editing mode. I can set editingStyleForRowAtIndexPath to UITableViewCel...

how to get game sound or how to create good sound for iPhone

Hi all, I am having problem of getting sound. i.e. how to get good sounds for our iPhone games? or how to make some good quality sounds for iPhone game applications so that the applications will become some more attractive? There are many sites like www.freesound.org , but I am not able to get good sounds as per my choice. If any one...

How do you create application preferences page?

I see some application that uses the settings bundle for their app. Example: http://knol.google.com/k/usman-ismail/iphone-sdk-application-preferences#. I was wondering how to do that without it appearing at the user main settings. I see some application managed to do that. Is there any tutorial around? ...

Is it possible to debug an ad-hoc version of an iPhone app on iPhone using XCode?

I have an app that reads and writes data from sqlite3. I tested it on the simulator it looks like everything is OK. But if the ad-hoc version does a 'delete' or 'insert' query in the sqlite3 file on iPhone, it crashes. Is it possible to debug ad hoc versions of iPhone apps with XCode? ...

Ask for an example code for parsing xml and get attributes by using GData API

When i use GData API in my app for parsing xml,how could i get attributes and it's value? Wanted a piece of example code.Thanks a lot. xml: <playurls><url islive="0" type="3" bit_stream="1">http://vods.netitv.com//dy2/2010/02/08/cf584b76-3579-4b75-a0c8-f7a473d79f8c.mp4 </url><url islive="0" type="3" bit_stream="2">http://vods.net...

making of curve shape in Box2d in the latest version

i found some post that shows how to make curve shape in iphone using box2d but in the latest version of box2d i m unable to get some clue can you provide me some sample of making a shape instead of setasbox() function... ...