日曜日, 2月 27, 2011
水曜日, 2月 23, 2011
route-me is using GitHub to share code with you!
Open source iPhone-native slippy map.
■Git through a proxy(http://www.rootninja.com/git-through-a-proxy/)
git config -–global http.proxy http://172.20.203.128:808
■GIT clone over HTTP(http://rip747.wordpress.com/2008/09/12/git-clone-over-http-who-knew/)
git clone https://github.com/route-me/route-me.git
▲How-to guide on making an application containing a map
△route-me Embedding Guide - GitHub
▲Integrating with your own project
in Interface Builder file” error at runtime
- Just call a method it inherits from NSObject, like +class.
- Set the -ObjC linker flag. In Xcode go to Project -> Edit Project Settings, find the "Other Linker Flags" entry and add the following (capitalization important) "-ObjC" without the quotes.
Related linker option:
-all_load: This one seems a bit overkill, as all of my unused classes will be kept in the final binary, potentially bloating it.
-ObjC : This seems to be a compiler flag, and overrides the file extension rules.
-lobjc : Need this special case of the -l option in order to link an Objective-C or Objective-C++ program.
- Fixed this by copying the text from my class.h and .m, deleting those class files from the project, and creating new class.h and .m files with the same name using "Add File".Then paste the code back into the new files, and everything work great.