xferget
Jan 21, 2017 - 09:50
This is my code
from objc_util import *
from ctypes import *
import dialogs
def block(_cmd, succeed, error_ptr):
pass
context = ObjCClass('LAContext').alloc().init()
error = ObjCClass('NSError').alloc().init()
print(context.canEvaluatePolicy_error_(1, c_void_p(id(error))))
context.evaluatePolicy_localizedReason_reply_(1, 'Touch ID', ObjCBlock(block, restype = None, argtypes = [c_void_p, c_bool, c_void_p]))
I know we should using objective-c type 'BOOL' here but there are no "BOOL"
That make the app crash
Who can help me make it work