I want to access primitive data types like int, Bool in Objective C.
I have created one class in which I declared an integer varriable.
Now in other class i want to access this data and also set the value of it.
As in Objective C setter methods are applicable only for objects and I can’t convert int to object.
So how would I be able to access the data ?
Please suggest some approach.
Where did you get that idea. You can have Objective-C properties that are primitive types using either properties or normal accessors.