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

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

  •  03-08-2022
  •  | 
  •  

Pregunta

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?

¿Fue útil?

Solución

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top