Friday, April 6, 2012

Route-Me Offline Mapping from Database

Please go through these below link
http://www.gisnotes.com/wordpress/2010/08/iphone-dev-note-21-route-me-offline-mapping-from-database/

http://support.cloudmade.com/answers/offline-maps
http://support.cloudmade.com/forums/iphone-sdk/posts/104/show

Thursday, March 15, 2012

Xcode Problems Redux: You don’t have permission to save the file “iOS DeviceSupport” in the folder “Xcode”


Xcode Problems Redux: You don’t have permission to save the file “iOS DeviceSupport” in the folder “Xcode”.


So we have another problem with Xcode: You don’t have permission to save the file “iOS DeviceSupport” in the folder “Xcode”. To view or change permissions, select the item in the Finder and choose File > Get Info
Some pretty shitty info. But I’ve played around a bit and found a fix.
1. Open up the terminal app
2. Execute the command:
sudo chmod 777 /Users//Library/Developer/Xcode
3. Disconnect your device and reconnect it
4. In the organiser, under devices press Add to Portal
5. Xcode should now add your device for development.
Hope this helps anyone out there :)

EXC_BAD_ACCESS on iPhone

how to debug EXC_BAD_ACCESS on iPhone

http://www.codza.com/how-to-debug-exc_bad_access-on-iphone


If you set the NSZombieEnabled environment variable, the Objective C runtime will leave a dummy object behind for every deallocated object. When the zombie object is called, execution stops and you can see the message that was sent to the object and the call stack that tells you where the message came from (it doesn’t tell you where you over released the object, but knowing where the object is called from should get you pretty close to the problem.)
To set this variable, go to the info panel of the executable in xcode, and create a newenvironment variable in the arguments tab by clicking the plus sign in the lower left corner of the window. Name the variable NSZombieEnabled, type YES for the value and make sure that the checkbox is selected.

set NSZombieEnabled variable


Tuesday, February 14, 2012

Renaming Project in XCode 4


Renaming Project in XCode 4 :  
Some are having trouble figuring out how to rename projects in Xcode 4. As it happens, Apple’s made things quite easy. It renames the project and the product names of any targets sharing the project’s nameand any strings it finds in your nib/xib files. In theory, that is.
Here’s how:
  1. Open the project in Xcode 4.
  2. Click the project itself in the Project Navigator.
  3. Open the Utility pane (the right-most button in the View button panel in the right side of the toolbar).
  4. Select the File Inspector utility pane if it’s not already.
  5. Under the Identity group, set the Project Name field to whatever you like and press return.
  6. You’ll be asked which items to rename (including any targets or strings in nib/xib files sharing the same name as the project).
  7. Cherry pick which ones you want to rename (probably all of them) by unchecking those you don’t, then click Rename.
  8. You may be asked to take a snapshot of the project. My advice? Do it. Xcode 4 still has bugs and crashed on me the first time I tried this, resulting in a screwed up project. Click Enable to enable snapshots if asked.
  9. Assuming there are no errors, all checked items will have a green checkmark next to them and the rename sheet’s button will turn to Ok. Click it and you’re done.