ios - New custom class file not appearing -


i trying create app on xcode5, nothing major it's first one.

i'm having trouble getting new file appear in custom class called "game" (files created game.h , game.m)

i create new file after right clicking on project name on top left corner, clicking new file "objective-c class", rename "game" hit create , it's done, both appear straight away under project name, drag them down other files keep tidy.

i highlight second view screen or game screen, click third icon @ top right corner go custom class drop down options change second view "game" it's not there???

i've deleted , retried many times mention, , need change "view controller" "game" ...

am missing somewhere?

first of all, if you're creating uiviewcontroller subclass, should have suffix viewcontroller, shouldn't effect problem you're having.

sometimes necessary save newly created file before auto-complete in custom class field storyboards , xibs. said though, because doesn't auto-complete doesn't mean won't work right. can still type name of class in (assuming type correctly) , work expected.

if still have doubts, go newly created file, cmd+s save, go ui file , should work fine.

also, make sure you've got write ui object selected. placeholder text in custom class box should match whatever class subclassed is.


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -