iOS 9 Segue Causes App To Freeze (no crash or error thrown)

前端 未结 6 2239
抹茶落季
抹茶落季 2020-11-29 09:28

I have been working on this app for months now and from as far back as I can remember I have never had an issue with segues. The code is unchanged in terms of calling

6条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-29 10:21

    So basically the segue was freezing because of the UITextView's I was using in the destinationViewController. The following fixed the issue:

    • Delete all UITextView's
    • Add new UITextView's
      • you must leave the default lorem imposed text and change this programmatically in the viewDidLoad()

    This was the fix for me, and from the research I have done on the issue it seems this is a bug in iOS 9 and Xcode 7.

    Cheers!


    NOTE: Removing the text in the UITextView (or making it longer then ~12 characters) is sufficient to work around it, no need to delete and recreate them. This is fixed in Xcode 7.1.1 and later.

提交回复
热议问题