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

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -