I have an app in the app store with an almost 5-star rating, but when iOS 6 came out, some views in the hierarchy of the main view of the app began to flash. This happens in the application that was in the store (I deleted it when iOS6 came out), as well as in the simulator.
I spent about 14 hours trying to accomplish 100 things to debug this in Xcode, but can't get any relation to it. Subviews disappear and reappear, as if gremlin randomly disables and disables the visible property for each of them up to 10 times per second, between longer periods when everything is normal.
The main interface is the dial, which the user can rotate, where I use 3d transformations on the layer to rotate it. The only pattern I found is that 3 of the 4 disappearing subzones disappear together, as if they were locked as one when the dial is rotated to certain discrete positions.
The 4th disappearing subview should be a static image and it will blink on. and off without a visible template.
I like any thoughts, tips on how I can debug this. This is not a memory warning, and the execution of the extra [setNeedsToDisplay] does not seem to be affected. I'm starting to think that Apple broke something in iOS6, but I can not find anyone who talked about these problems.
The following is a breakdown of the main hierarchy of subviews and CALayers views:
- My hierarchy contains 2 base CALayers, which are fine.
- UIView ( drawRect)
UIImageVew, , ,
.
.
- UIView, .
- UIImageView,
, .
UIImageView; !
.
- , UIButton, , , .
- UIImageView, ,
,
3 "" ( ,
).