objective c - IOS's DownloadFont feature official code doesn't work when copy paste code in new project, why? -



objective c - IOS's DownloadFont feature official code doesn't work when copy paste code in new project, why? -

this question feature called "downloadfont" implemented ios 6 allows application download additional fonts aren't available default.

when re-create , paste source file content same files in new project (single view template), error "signal sigabrt" main.m , message in console : "terminating app due uncaught exception 'nsinternalinconsistencyexception', reason: 'could not load nib in bundle: 'nsbundle". however, if download source code exclusively project (as available in above link), , run in same version of same ide (xcode6 beta2), works perfectly.

to more precise, did re-create content appdelegate.h, appdelegate.m, viewcontroller.h, viewcontroller.m , main.m same files in new project , set same deployment target sample code (6.0), throws above exception.

this may not problem specific downloadfont, couldn't find out why doesn't work.

you missing either storyboard .storyboard file or view controller .xib file. both of files user interface files define how user interface should , behave.

the illustration code isn't meant copied whole project, rather typically code snippet @ time if need it.

ios objective-c xcode debugging ios6

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -