Using mixed projects you can face with several challenging situations. One of them is the allocation of Swift objects in ObjC code. The general problem that Swift objects doesn’t have an alloc method which is used to allocate the memory in ObjC ([[SwiftClass alloc] init]). To access the Swift object you […]

Allocate Swift objects from Objective-C

General The main reason of this document is to help to achieve a clean code, which is: Readable: easily understandable – by other developers Maintainable: easily changeable by other developers as well Flexible: can be extended and add new functionality Testable: can be unit testable – where other classes are […]

Coding Guidelines

General programming questions OOP basics: what is a class, interface, instance variable, methods, static (class) methods vs instance methods. Header vs implementation files What is a process, thread design patterns and principles blackbox vs whitebox testing differences? unit testing? integration testing? regression testing? what is continuous integration? difference between stack/heap […]

iOS/ObjC Interview Questions

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-58d4626f8eaa3948207251/] But what if you forget the parenthesis and you put the variable simply beside the @synthesize? Like this: [crayon-58d4626f8eaab855015154/] The compiler will treat […]

ObjC ivar/global var declaration – a clarification