Skip to content

Commit

Permalink
ignore warning
Browse files Browse the repository at this point in the history
  • Loading branch information
yulingtianxia committed Oct 1, 2016
1 parent 1c018f7 commit 0efcb36
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/TBActionSheet/TBActionSheet.m
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,10 @@ - (void)setupLayout
actualsize =[content boundingRectWithSize:size options:NSStringDrawingUsesLineFragmentOrigin|NSStringDrawingUsesFontLeading attributes:tdic context:nil].size;
}
else {
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
actualsize = [content sizeWithFont:label.font];
#pragma GCC diagnostic pop
}
label.frame = CGRectMake(0, lastY, self.sheetWidth, actualsize.height);
lastY = CGRectGetMaxY(label.frame);
Expand Down

0 comments on commit 0efcb36

Please sign in to comment.