El método sizeWithFont está en desuso. boundingRectWithSize devuelve un valor inesperado

En iOS7,sizeWithFont está en desuso, así que estoy usandoboundingRectWithSize(que devuelve un valor CGRect). Mi código:

 UIFont *fontText = [UIFont fontWithName:[AppHandlers zHandler].fontName size:16];
                    // you can use your font.

 CGSize maximumLabelSize = CGSizeMake(310, 9999);

 CGRect textRect = [myString boundingRectWithSize:maximumLabelSize   
                             options:NSStringDrawingUsesLineFragmentOrigin
                             attributes:@{NSFontAttributeName:fontText}
                             context:nil];

 expectedLabelSize = CGSizeMake(textRect.size.width, textRect.size.height);

EntextRect, Estoy consiguiendo una talla mayor que mimaximumLabelSize, un tamaño diferente al de usarsizeWithFont. ¿Cómo puedo resolver este problema?

Respuestas a la pregunta(6)

Su respuesta a la pregunta