小编Mic*_*ués的帖子

锁定了多少时间Touch ID?"生物测量被锁定了."

我正在尝试实施Touch ID登录,但是当用户失败超过最大尝试次数时,我收到此错误"Error Domain = com.apple.LocalAuthentication Code = -8"Biometry被锁定."UserInfo = {NSLocalizedDescription = Biometry is被锁在外面.}"

我想知道:

  • 多少时间,我在哪里可以检查它是锁定触摸ID?
  • 是否可以强制解锁而不显示密码?
  • 如果用户使用密码失败所有尝试,锁定触摸ID的时间是多少,或者我如何强行解锁呢?

谢谢!

objective-c fingerprint ios touch-id

6
推荐指数
2
解决办法
5655
查看次数

滚动tableview时编辑导航栏的alpha

我想询问当用户滚动tableview时是否可以更改导航栏的alpha值.

我有算法,但我需要一些帮助来实时更改.

  /* This is the offset at the bottom of the scroll view. */
CGFloat totalScroll = scrollView.contentSize.height - scrollView.bounds.size.height;

/* This is the current offset. */
CGFloat offset = - scrollView.contentOffset.y;

/* This is the percentage of the current offset / bottom offset. */
CGFloat percentage = offset / totalScroll;

/* When percentage = 0, the alpha should be 1 so we should flip the percentage. */
scrollView.alpha = (1.f - percentage);
Run Code Online (Sandbox Code Playgroud)

xcode scroll objective-c uinavigationbar ios

1
推荐指数
1
解决办法
1925
查看次数