TSPopoverのバグ
821 ワード
TSPopoverオープンソースURL:https://github.com/takashisite/TSPopover
バグ説明:TSActionsheetポップアップウィンドウを使用して、イベントソースのボタンをクリックして下に置くと、ポップアップウィンドウが変形して正常に表示されなくなる
バグ原因:画面変換時にステータスバーの高さを取得中にエラーが発生し、ウィンドウサイズ計算エラー
バグ解決:
ファイルmファイル
関数-(CGRect)contentFrameRect:(CGRect)contentFrame senderPoint:(CGPoint)senderPoint
コードの変更:
バグ説明:TSActionsheetポップアップウィンドウを使用して、イベントソースのボタンをクリックして下に置くと、ポップアップウィンドウが変形して正常に表示されなくなる
バグ原因:画面変換時にステータスバーの高さを取得中にエラーが発生し、ウィンドウサイズ計算エラー
バグ解決:
ファイルmファイル
関数-(CGRect)contentFrameRect:(CGRect)contentFrame senderPoint:(CGPoint)senderPoint
コードの変更:
//-------------------------------------------------------------------------------- bryan update start
//float statusBarHeight = [[UIApplication sharedApplication] statusBarFrame].size.height;
float statusBarHeight = MIN([UIApplication sharedApplication].statusBarFrame.size.height, [UIApplication sharedApplication].statusBarFrame.size.width);
//-------------------------------------------------------------------------------- bryan update end