ios - UIAlertViewController not responds after slow animation on in simulator -
i using xcode 7.2 today notice strange behavior in simulator. whenever opening uialertviewcontroller
actionsheet
or default
type simulator slow-motion animations on
( ⌘ + t
) mode on simulator after app not responding time can not able user activity few second (around 20 second). issue of using swift reference can create demo using following code uialertviewcontroller
@ibaction func alertshow(){ let alertcontroller = uialertcontroller(title: "title", message: "message", preferredstyle: .alert) alertcontroller.addaction(uialertaction(title: "ok", style: .default, handler: nil)) self.presentviewcontroller(alertcontroller, animated: true, completion: nil) }
try allocating uialertcontroller earlier let in viewdidload, use object in ibaction function, works fine me
Comments
Post a Comment