Instantiating Modal view controller freezes the app - Probable issue with Xcode 7

前端 未结 3 582
傲寒
傲寒 2021-01-06 06:54

I am presenting a view controller modally in iOS app. The issue is that there is no crash and the app freezes as soon as presentViewController:animated is called. The stats

3条回答
  •  借酒劲吻你
    2021-01-06 07:18

    Ok, this is bizarre, but I hope it helps: I have the EXACT same issue, the CPU jumps to 100% and view never shows. Works perfectly well in Xcode 6.4. In Xcode 7.1, on the view that I am calling, I have got a UITextView with some placeholder text "Notes:". What I found is that if I clear out the placeholder text, the view LOADS and all of the procedures execute as normal. If the placeholder text length is greater than 9 characters, the view also loads and procedures execute as normal. If the placeholder text length >0 and < 10, it's a no go. No view and CPU at 100%. This is odd, I realize, but hopefully it helps you out. Like you, I've got no errors or console output to show, it just spins.

    EDIT FYI, blanking out the placeholder text in the storyboard, and just setting it in code fixes this as well irrespective of length

提交回复
热议问题