assign is the correct annotation here. You use assign for any primitive types. The alternatives (weak, strong/retain) rely on the property pointing at an object to function. I believe the compiler won’t even let you declare the wrong type of property for this. If you really wanted to you could omit the assign as it is the default.
Related Contents:
- @synthesize vs @dynamic, what are the differences?
- Semantic Issue: Property’s synthesized getter follows Cocoa naming convention for returning ‘owned’ objects
- What is the Swift equivalent of respondsToSelector?
- “unrecognized selector sent to instance” error in Objective-C
- How to get rid of the ‘undeclared selector’ warning
- Objective-C: Calling selectors with multiple arguments
- error: writable atomic property cannot pair a synthesized setter/getter with a user defined setter/getter
- Read-only and non-computed variable properties in Swift
- Selectors in Objective-C?
- cancelling queued performSelector:afterDelay calls
- Using -performSelector: vs. just calling the method
- Swift readonly external, readwrite internal property
- Get an object properties list in Objective-C
- Using a BOOL property
- Readonly Properties in Objective-C?
- Why must the last part of an Objective-C method name take an argument (when there is more than one part)?
- What’s the difference between ‘weak’ and ‘assign’ in delegate property declaration
- When should I use @synthesize explicitly?
- What is the difference between ivars and properties in Objective-C
- @property definitions with ARC: strong or retain?
- What’s the difference between a method and a selector?
- Objective-C property that is readonly publicly, but has a private setter
- How is release handled for @synthesized retain properties?
- Passing parameters to the method called by a NSTimer
- Create an array of integers property in Objective-C
- Creating a selector from a method name with parameters
- Must every ivar be a property?
- Property vs. ivar in times of ARC
- Properties and Instance Variables in Objective-C
- UITapGestureRecognizer selector, sender is the gesture, not the ui object
- iOS 8 Snapshotting a view that has not been rendered results in an empty snapshot
- Objective-C Runtime: best way to check if class conforms to protocol?
- Remove all whitespaces from NSString
- Convert NSNumber to int in Objective-C
- How do I parse JSON with Objective-C?
- What is the meaning of id?
- Optional arguments in Objective-C 2.0?
- Couldn’t load a xcode project because it is already opened from another project or workspace
- How to display a base64 image within a UIImageView?
- Reverse NSString text
- Concatenate String in String Objective-c
- How to create a blank transparent png in Objective-C?
- Open source Objective-C projects with high quality code?
- How to I pass @selector as a parameter?
- How to Write OS X Finder plugin
- How can I return instancetype in Swift [duplicate]
- Why [object doSomething] and not [*object doSomething]?
- Remove all the subviews from a UIScrollView?
- iOS change auto layout constraints when device rotates
- Create a UIImage with a URL in iOS