Deprecate sizeWithFont: UIFont constrainedToSize:CGSize lineBreakMode:NSLineBreakMode in MBProgressHud

StackOverflow https://stackoverflow.com/questions/20101099

  •  03-08-2022
  •  | 
  •  

문제

In my app I'm using the MBProgressHUD, but when I try to run my app it shows me that the method:

sizeWithFont:(UIFont *) forWidth:(CGFloat) lineBreakMode:(NSLineBreakMode)

it's deprecated and it suggest me to use this method:

boundingRectWithSize:(CGSize) options:(NSStringDrawingOptions) attributes:(NSDictionary *) context:(NSStringDrawingContext *)

but how I can use this method in this library? The method it's in the MBProgressHUD.m. There's a simple solution to silence this warning?

도움이 되었습니까?

해결책

Why don't you just download the latest version? This has been fixed as of commit a50f7a3.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top