Showing posts with label xCode. Show all posts
Showing posts with label xCode. Show all posts

Xcode: include ObjectiveC categories int static library

If you need to include ObjectiveC categories or other framework using ObjectiveC categories ( for example JSON framework ) into your own static library you probably get


-[__NSCFDictionary JSONRepresentation]: unrecognized selector sent to instance


In your project that using your static library you need to set in Project Settings for "Other Linker Flags" property two additional flags:

-ObjC
-all_load


How to create additional localization on your iOS app - Files (plist, ...)

 1. Create a directory under project directory (in Finder) in format: language_region.lproj or language.lproj

languages list: ISO 639-2 Language Codes
regions list: ISO - Maintenance Agency

2. Right click on "Resource" in xCode project.
         Add ->
         New File ->
         Choose "Other" from Mac OS X ->
         Choose "Empty File" ->
         Next ->
         In "File Name" field change from "untitle" to "MyFileName.MyExtention" (usually Localizable.strings or MyFileName.plist) ->
         In "Location" field choose language_region.lproj folder you created ->
         Finish

3. Fill file with content do you want (copy/paste or replace file in Finder)