ios - Erratic behaviour when loading new views -
i have been trying days resolve issue bug in code can't figure out.
this first ever ios app , post on here go easy on me!
basically, have app has 'create' button , 'load' button. when 'create' button pressed, position moves , textfield created user input text. when 'load' button pressed, 1 time again position moves tableview created user select previous file names.
if user presses 'create' button, fills in textfield, , 1 time again presses 'create', application segues new view perfectly. same when user presses 'load', selects file name table view , 1 time again presses 'load' segue new view. both segue same view , works perfectly.
however, if user clicks 'create' button (which animates buttons , creates textfield), , clicks away, reverting view original layout, , decides load previous file (which 1 time again animates buttons time creates table view), new view loads bizarrely! instead of animating bottom fill screen, appears halfway on previous view, moves , downwards cover old view.
what more bizarre weird loading of views continues across views when bug occurs.
i programmatically trigger segues, using
[self performseguewithidentifier:@"first" sender:sender]; and
[self performseguewithidentifier:@"second" sender:sender]; and have ensured segues labelled correctly.
does have similar experience , have managed rectify problem? did seek upload pictures show problem improve not have plenty points :(
i have uploaded video youtube of bug should more show issue:
http://youtu.be/rb5qpf2imsk
your video demonstrates think problem is. when start out on meal planner page, , segue next controller, looks you're doing modal presentation. however, when nail looks custom arrow, you're presenting instance of meal planner view, instead of going 1 came (the current view should slide downwards , off screen when dismiss modal view). when going backwards previous controller, should utilize unwind segue, if you're using segues. alternative, dismiss controller in code using dismissviewcontrolleranimate:completion:.
ios objective-c iphone xcode
No comments:
Post a Comment