- What is category? Can you have properties or ivars in a category?
- What is protocol? What is formal and informal protocol?
- What is ARC? Is it garbage collection?
- Difference between atomic and nonatomic properties?
- Difference between strong and retain?
- What is unsafe_unretained? Difference between unsafe_unretained, assign and weak?
- What does a copy property do? Is it deep copy or shallow copy?
- Does ObjectiveC have function overloading?
- What is messaging? How does the runtime handle message passing? What is message forwarding?
- What is 'id'?
- What is performSelector:withObjec
t:? What if I have to performSelector:withObjec t:but pass 3-4 arguments to the method? (Hint: NSInvocationOperation) - What is delegate? Can delegates be retained?
- What is retain cycle?
- Does ObjectiveC have multiple inheritance? Why not? How to imitate multiple inheritance?
- What is class extension? Why do we require them?
- Who calls dealloc method? Can we implement dealloc in ARC? If yes, what is the need to do that?
- Can you write setter method for a retain property?
- Can you write a singleton class in ObjectiveC?
- What is GCD? What are advantages over NSThread?
- What is NSOperation and NSOperationQueue?
- How does dispatch_once manages to run only once?
- What are blocks?
- What are NSAutoreleasePool? When to use them?
- Does a thread created using performSelectorInBackgrou
nd:withObject: creates its own autorelease pool? - ObjectiveC is dynamic language? True/False, explain.
- An NSArray containing Employee model object which has properties like empId, salary, age, designation, rating etc. Write a function that,
- Returns average salary
- Returns minimum age
- Returns maximum rating
iOS questions
- What is the output binary format? Explain .app structure.
- What are the CPU architectures supported by iOS devices?
- What iOS version onwards ARC can be used?
- Can we support same application for iPhone3GS and iPhone5? Why not?
- Can I write some C++ function in same .m file? Will it compile? If no, what changes should I do to compile it?
- What are the types of iOS binaries you can create using XCode? (.app, .ipa, .a, .framework)
- Can a static library (.a) contain resources like images, sound files etc?
- What is bundle?
- Explain application life cycle.
- What is responder chain?
- Tell me hierarchy of UIButton.
- Why create a custom view?
- Why UIControl is provided if we can create custom UIView?
- What are lifecycle events of UIViewController?
- Difference between viewDidLoad and viewDidAppear?
- Is UIKit thread safe?
- Why do we override drawRect: method?
- What are layers?
- What are various singleton instances provided by frameworks? (UIApplication,NSFileManager, NSUserDefaults, etc.)
- What is NSUserDefaults? What type of data can we store there?
- How do you check if your code has memory leaks?
- What does static analyser do?
- What are different Instruments Xcode supports for app profiling?
- Concepts of notification center, local and remote notifications.
- Have you uploaded app on Appstore? What is the process?
- Difference between Developer and Enterprise Developer accounts?
- Common reasons for app rejection from Appstore review process?
- UITableView cell reuse. How to get it working (w/ or w/o XIB)? How would you implement reuse on a UIScrollView?
Few questions on CoreData which I may ask in an interview to some one brave enough to venture :)
- How do you setup/initialise a core data stack in your application? Is this activity performed on main thread? If not, why?
- What is NSPersistentStoreCoordina
tor? What duties does it perform? - What is NSPersistentStore? Is it thread safe?
- What is NSManagedObjectContext? What are the different concurrency types? Explain them.
- Different types of persistent stores? Which all types can we have on iOS?
- Can my application have multiple models? (Yes)
- In a single model, can I have few entities in one sqlite db file and remaining in another sqlite db file? (Yes, Hint: configurations)
- What are the different store migration options? When are they used? How do they work? What is mapping model?
- Explain parent-child context setup. How does it work? What are the advantages?
- What is difference between performBlock: and performBlockAndWait:?
- Are the NSManagedObjectContext queues serial or concurrent?
- Can you pass same core data objects between different threads and modify?
- What performance issues can you face when using CoreData?
- What is NSFetchedResultsControlle
r? How do you turn on content monitoring? - How to implement "load more" using NSFetchedResultsControlle
r? (Hint: Set fetch offset and fetch limit on the NSFetchRequest of the controller, change the request to fetch more results) - What are the different delete rules that a relationship can have? Which one takes ownership?
- In NSFetchRequest can we fetch only a selective few attributes of an entity? How?
- Can I have relationship between entities in separate stores (in case of configurations)? (No)
- What are fetched properties? How do you create a fetched property?
- What does $FETCH_SOURCE and $FETCHED_PROPERTY in the predicate mean?
- Why do all model object attributes get marked with @dynamic and not synthesised? What does @dynamic mean?
- When a NSFetchRequest fetches an entity object from store, does it fetch all of its data at once?
- What is a fault?
- What are transient properties?
CustomAlertView *contentVC = [[CustomAlertView alloc]init];
contentVC.definesPresentationContext = YES;
contentVC.view.backgroundColor = [UIColor clearColor];
contentVC.modalPresentationStyle = UIModalPresentationOverCurrentContext;
self.modalPresentationStyle = UIModalPresentationCurrentContext;
[self presentViewController:contentVC animated:YES completion:nil];
Slots - DrMCD
We also have 과천 출장안마 a number of slots for you to enjoy 원주 출장마사지 playing. Here are some of our most popular 벳 365 slot machine titles. · 5. 화성 출장마사지 The 구미 출장마사지 Magic $10.00