Skip to content

Commit

Permalink
Merge pull request escoz#607 from zodio/master
Browse files Browse the repository at this point in the history
Added runtime check for imageWithRenderingMode: to prevent crash in iOS ...
  • Loading branch information
escoz committed Nov 4, 2013
2 parents 94c5f95 + 98eb78d commit d4f3298
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion quickdialog/QLabelElement.m
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ - (NSString *)imageNamed {

-(void)setIconNamed:(NSString *)name {
#if __IPHONE_7_0
self.image = [[UIImage imageNamed:name] imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
if ([self.image respondsToSelector:@selector(imageWithRenderingMode:)]) {
self.image = [[UIImage imageNamed:name] imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
}
#endif
}

Expand Down

0 comments on commit d4f3298

Please sign in to comment.