What is property and its types?



What is property and its types?..

Answer / Harish Singh

"In Objective-C, properties provide a way to encapsulate instance variables with accessor methods. Properties can be of different types such as `@property (nonatomic, strong) IBOutlet UIView *myView;` or `@property (readonly, assign) CGFloat myReadonlyProperty;`. This line defines an instance variable `myView` and a synthesized accessor method pair."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Objective-C Interview Questions

What is the use of objective c?

1 Answers  


What does r mean in xcode?

1 Answers  


What is difference between mutable and immutable?

1 Answers  


What is hashable?

1 Answers  


What is the protocol in objective c?

1 Answers  


How do I open .m files?

1 Answers  


What does nonatomic mean?

1 Answers  


What is the difference between a script and function?

1 Answers  


What is .m file in xcode?

1 Answers  


What is nsarray objective c?

1 Answers  


Is swift based on objective c?

1 Answers  


Is objective c the same as c sharp?

1 Answers  


Categories