wait_fences: failed to receive reply: 10004003 (Again)

后端 未结 5 625
孤独总比滥情好
孤独总比滥情好 2021-01-21 14:34

Another cry for help about this warning.

First of all I have looked at every and all questions on here elsewhere and none seem to fit my situation. It has nothing to do

5条回答
  •  迷失自我
    2021-01-21 14:54

    ? I'm a little unclear of your view/viewcontroller hierarchy...

    You've got a ViewController "Calc" which creates a "DataView" for it's "master" view. "DataView" creates a textField "TextFieldKPD" as a subview of itself. "TextFieldKPD" then creates a UIView "KeyPad" subview which itself creates 13 UIButton subviews for itself.

    So your views are 4 levels deep?

    Apple state that a ViewController should handle a whole screenful of views (I guess this changed slightly now that we can create containerViews but the intent behind their assertion remains). Make sure your keypad button events and textfield events are handled by your viewController.

    Surely you would be better creating all of these views in the viewController or the master view so your hierarchy is flatter?

    Apologies if I've misunderstood your hierarchy.

    Btw, one thing to try is removing the textfield entirely and seeing if you can still get the error.

提交回复
热议问题