我正在尝试实施Touch ID登录,但是当用户失败超过最大尝试次数时,我收到此错误"Error Domain = com.apple.LocalAuthentication Code = -8"Biometry被锁定."UserInfo = {NSLocalizedDescription = Biometry is被锁在外面.}"
我想知道:
谢谢!
我想询问当用户滚动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)