4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

9/11/2015時点でのIonicはiOS9で少し画面遷移がおかしくなるためパッチを当てないといけない件

Posted at

こんにちはimaiです.
9/11/2015時点で,iOS9でのIonicの挙動がおかしくなるのでパッチを当てなければいけないので,それについて少し書きます.
しばらくすれば、Ionicのバージョンが上がると思うので,それまでの対処方になるかと思います.

問題

僕の環境(Ionic&iOS9)では,ページ遷移においてガクガクしてうまく動かない.

こうしたい

iOS8まで動いていたようにiOS9でもヌルヌル動作させたい.

手法

公式ブログとやり方は同じ.
iOS9にてUIWebViewの仕様が変わったのが原因らしい(window.location$locationを使ってると起こるらしい)ので,それを解消させるパッチをあてる.

  • index.htmlでパッチのスクリプトを読み込ませる
  • angularにモジュールを読み込ませる
index.html
<script src="http://code.ionicframework.com/patch/ios9-$browser-patch.js"></script>

app.js
angular.module(appName, ["ionic", "ngIOS9UIWebViewPatch"]);

以上.

余談

window.locationに関するバグと,ラジオボタンに関するバグと,セキュリティに関する変更点が挙げられているので困っている方は公式ブログへ.

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?