Saturday, 15 September 2012

ios - How to change view after Touchid -



ios - How to change view after Touchid -

i have touchid identification open app. if homecoming access correct, go other view controller. when pass authentication, half of screen black , touchid view shown.

i use:

allow storyboard = uistoryboard(name: "main", bundle: nil) allow controller3 = storyboard.instantiateviewcontrollerwithidentifier("view1") uiviewcontroller self.presentviewcontroller(controller3, animated: true, completion: nil)

how can correctly?

thanks!

without seeing more of code/approach, hard certain. if calling ui code in reply block of lacontext "evaluatepolicy:localizedreason:reply", need set ui code in main thread.

per apple docs, method "asynchronously evaluates authentication policy" , reply block "is evaluated on private queue internal framework in unspecified threading context."

https://developer.apple.com/library/prerelease/ios/documentation/localauthentication/reference/lacontext_class/index.html#//apple_ref/occ/instm/lacontext/evaluatepolicy:localizedreason:reply:

ios xcode swift

No comments:

Post a Comment