Replace sizeWithFont with boundingRectWithSize, and remove the #pragma c...

Replace sizeWithFont with boundingRectWithSize, and remove the #pragma clang diagnostic ignored "-Wdeprecated-declarations"