c# - Trying to use touch id -


i trying use touch id sample on 1 of xarmians blogs given me error. not no if cause using simulators registered test touch passed. failing , probelm have using story boards question how push view controller succsess , find out why touch id faling.

partial void touchid(uibutton sender)     {          //lets double check device supports touch id         if (context.canevaluatepolicy(lapolicy.deviceownerauthenticationwithbiometrics, out error))         {             var replyhandler = new lacontextreplyhandler((success, error) =>                 {                     invokeonmainthread(() =>                         {                             if (success)                             {                                 var newvc = new uiviewcontroller();                           presentviewcontroller(newvc, true, null);                             }                             else                             {                                 var alert = new uialertview("oops!", "something went wrong.", null, "oops", null);                                 alert.show();                             }                         });                 });             context.evaluatepolicy(lapolicy.deviceownerauthenticationwithbiometrics, "logging in touch id", replyhandler);         }         else         {             var alert = new uialertview("error", "touchid not available", null, "booo!", null);             alert.show();         }     } 

it getting line of application

var alert = new uialertview("oops!", "something went wrong.", null, "oops", null); 

for else stuck had following.

var homescreen = (uiviewcontroller)storyboard.instantiateviewcontroller("welcome");         presentviewcontroller(homescreen, true, () => { }); 

while making sure story board id of view controller wanted show set welcome


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -