objective c - What is proper format for header files? -


i'm new ios , object oriented programming. how should use format of header files me? have attached blank header file of class newclass sub class of uiview controller.

#import <uikit/uikit.h>  @interface newclass : uiviewcontroller  @end 

what know do things? declare variables , types of variables? declare methods? there difference of put private or public variables? instance variables? importing other things? how format me , other readers?

 #import <uikit/uikit.h>   @interface newclass(class name) : uiviewcontroller (type)  {   variables  }   methods   @end 

private methods , variables should go in implementation file

more info: https://developer.apple.com/library/ios/referencelibrary/gettingstarted/learning_objective-c_a_primer/


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -