Objective C problem defining properties -


When I try to define an int as an asset in Objective-C, I get an error ( Not of type object). I have tried using NSInteger and int, but neither has worked.

Code: Full seat;

@property (non-nominal, retaining) int seats;

You can not have an int or NSInteger because they are primitive types - not objects instead use the following Do:

  @property (nonatomic, assigned) int seats;  

Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -