ios6 - sizeWithAttributes causes crash on ios 6. Works in ios 7 -
since sizewithfont method deprecated wanted try sizewithattributes works expected when running ios 7. when run on ios 6 causes crash, , can see looking @ header looks this.
- (cgsize)sizewithattributes:(nsdictionary *)attrs ns_available_ios(7_0);
since sizewithattributes came category removed can't use in ios 6 , under.
what can it? can use sizewithfont: if target < ios 7, there must reason has been deprecated, want avoid it.
any ideas?
it did not exist on ios 6 guess why crash. in osx 10.8 , 10.9.
Comments
Post a Comment