ios - How to write to a sidebar menu from another view -
i have app there sidebar menu. instagram , facebook apps, have user settings view, can upload picture. picture shown in sidebar menu. picture loaded once, when sidebar menu tickers viewdidload
.
the problem if user changes image in user settings view, can't update sidebar menu. viewdidload
runs once. best thing if set uiimage in sidebar user settings view - possible?
i not @ xcode (swift) yet bear me.
without code samples or knowing implementation of sidebar these guesses. viewdidload called once when view added hierarchy. try moving logic needs execute on each subsequent appearance viewwillappear.
in past when i've implemented sidebar, i've used uitableview or uicollectionview. simplified determining selected , reloading state/data of view you're using defined delegates , methods. worked me ymmv.
the best thing if set uiimage in sidebar user settings view - possible?
it best keep sidebar , settings view separate. don't need know other exists. doesn't mean shouldn't share same data or abstraction (service class, plist, etc) on data.
Comments
Post a Comment