[Umbrella] Add warn_unused_result Attribute to Public Headers (#2353)

* Add some warn_unused_result attributes

* Add more

* Add some more
This commit is contained in:
Adlai Holler
2016-10-06 16:44:49 -04:00
committed by GitHub
parent 271ab20de5
commit 124234fef8
30 changed files with 128 additions and 117 deletions

View File

@@ -68,7 +68,7 @@ typedef NS_ENUM(NSInteger, ASButtonNodeImageAlignment) {
*
* @return The title for the specified state.
*/
- (NSAttributedString * _Nullable)attributedTitleForState:(ASControlState)state;
- (NSAttributedString * _Nullable)attributedTitleForState:(ASControlState)state AS_WARN_UNUSED_RESULT;
/**
* Sets the styled title to use for the specified state. This will reset styled title previously set with -setTitle:withFont:withColor:forState.
@@ -96,7 +96,7 @@ typedef NS_ENUM(NSInteger, ASButtonNodeImageAlignment) {
*
* @return The image used for the specified state.
*/
- (nullable UIImage *)imageForState:(ASControlState)state;
- (nullable UIImage *)imageForState:(ASControlState)state AS_WARN_UNUSED_RESULT;
/**
* Sets the image to use for the specified state.
@@ -122,7 +122,7 @@ typedef NS_ENUM(NSInteger, ASButtonNodeImageAlignment) {
*
* @return The background image used for the specified state.
*/
- (nullable UIImage *)backgroundImageForState:(ASControlState)state;
- (nullable UIImage *)backgroundImageForState:(ASControlState)state AS_WARN_UNUSED_RESULT;
@end