こんばんは フリーランスの永田です。
19日のアドベントカレンダー投稿予定の記事も書き上げてしまいました。
19日に公開させていただきます。
今回は題名の自作ライブラリーで発見したBugの修正方法を簡単に記載させていただきます。
自作ライブラリーは前面背面を同時録画でき、スクリーンショット機能を持つライブラリーです。
問題1
パープルボタンを押下して2画面同じ比率にする際、録画画像が2ミリぐらいずれてしまっていた。
対応
縦画面では2画面同じ比率と、録画画像が合っていたので、同じロジックを横画面でも組み込む。
解説
前面背面を指定したframeにする
2画面同じ比率の場合
半分の大きさにして、指定したY座標の設定
以上で横画面で2画面同じ比率の時も、縦画面と同じロジックで撮影画面と合いました。
問題2 +対応+解説
課題
— DaisukeNagata (@dbank0208) December 15, 2019
画面が寝ている場合にiPhoneは検知状態が、縦も横も同じフラグ状態になり、縦から横に画面回転とほぼ同時に画面を寝かせると縦画面で撮影されました。
対応
回転した際に状態取得して、取得した状態が、縦画面か横横画面か判定して撮影をするようにしました。
結果
課題を解決しました。
上記は言語をプログラム化した内容になります。
以上で2つのBugを修正しました。合計で1時間30分ぐらいで対応しました。
あと青いButtonのカメラ切り替えの際に横画面の画面崩れが発生していた部分を修正しました。これは3分ぐらいです。
画面回転と横画面のプログラムを入れると、確認項目や難易度が一気に上がりますが、対応できたと思います。
以上、貴重なお時間お読み下さいまして、誠にありがとうございます。
9 Responses
Excellent beat ! I wish too apprentice while you ammend your site, how can i subscribe for a blog
web site? The account helped me a appropreiate deal.
I had been tiny bit familiar of this your broadcast provided vivid clear idea
If the act of raising technology becomes a simple daily routine, it becomes work and life becomes wealthy.
Today, I went to the beach with my children. I found a sea shell and gave it to my 4 year old daughter and said
“You can hear the ocean if you put this to your ear.” She placed the shell to her ear and screamed.
There was a hermit crab inside and it pinched
her ear. She never wants to go back! LoL I know this is totally off topic but I had to tell someone!
Hi, Neat post. There is a problem along with your web site in web explorer, could test this?
IE still is the market chief and a huge component to
folks will omit your great writing due to this problem.
You should be a part of a contest for one of the greatest blogs on the internet.
I most certainly will recommend this website!
constanty i used to read smaller posts that as well clear their motive,
and that is also happening with this article which I am reading now.
I love it whenever people get together and
share ideas. Great blog, stick with it!
This piece of writing will help the internet people
for setting up new website or even a blog from
start to end.
I do not even кnow how I еnded uⲣ here, but I thought
tһis post ᴡas grеat. Ӏ don’t know wh᧐ you аre but certaіnly yoou are going tօ a famous blogger
if yоu aгen’t aⅼready 😉 Cheers!