You can declares iVar-s in header files but it’s better in the implementation, so they will be really invisible for others. You should do this way: [crayon-5adab422e914c767090078/] But what if you forget the parenthesis and you put the variable simply beside the @synthesize? Like this: [crayon-5adab422e9157273837002/] The compiler will treat […]
iOS

There is a fancy solution to present the scrolling position of a tableview to the user using moving image as a background. The user can better imagine the size of the table view because the background image suggest where he/she is in the tableview. How-To – short version Add a […]
Using the background of a UITableView as a scroll indicator
Mock objects are objects which behave like another business objects, but they don’t do more than you need to test a unit. For example they response with a static data. Mock frameworks gives you the ability to define dynamically mock objects in the test method rather than define them in […]
iOS mock framework for unit tests
There is a built in code analyzer in Xcode but unfortunately it’s not that we really need. It doesn’t check complexity, method sizes etc. This was one of the missing features till now because fortunately there is a good one out already: OCLint (http://oclint.org/) Unfortunately there is still no correct […]
ObjC advanced static code analyzer
If you plan to submit your app to app store and you aren’t sure it doesn’t use private API you can check it with App-Scanner (https://github.com/ChimpStudios/App-Scanner)
Private API check
About property and iVar usage in init/dealloc methods. Technically one use properties if he wants to publish a member. Make it accessible and/or modifiable without exposing the structure of the class. Properties also allows you to run a code (accessors) when the property is set (setter method) or get (getter […]