You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have UISwitches in the UI that allow a user show/hide (3) lines of the linechart.
At the beginning I want to show only one line chart when viewDidLoad. But the problem is that hiding during viewDidLoad is not working. When view is loaded and user is changing visibility of the lines using switches then it works.
When I move code from the viewDidLoad to the viewDidAppear then it also works but there is visual side effect that user sees that line are hiding which I would like to avoid.
I found that there is also another way using ugly hack. When I wrap body of the showLine method to the dispatch_after with e.g. 0.2 sec.
Is there a way to resolve this problem?
The text was updated successfully, but these errors were encountered:
Hi,
I have UISwitches in the UI that allow a user show/hide (3) lines of the linechart.
At the beginning I want to show only one line chart when
viewDidLoad
. But the problem is that hiding duringviewDidLoad
is not working. When view is loaded and user is changing visibility of the lines using switches then it works.When I move code from the
viewDidLoad
to theviewDidAppear
then it also works but there is visual side effect that user sees that line are hiding which I would like to avoid.I found that there is also another way using ugly hack. When I wrap body of the
showLine
method to thedispatch_after
with e.g. 0.2 sec.Is there a way to resolve this problem?
The text was updated successfully, but these errors were encountered: