【问题标题】:how to design Android Pattern Lock Screen in iphone如何在 iphone 中设计 Android 图案锁屏
【发布时间】:2012-07-25 10:05:17
【问题描述】:

我想在我的 iphone 应用程序中创建一个 android 图案锁屏... 但我不知道该怎么做......我搜索了很多但没有得到...... 任何人都可以知道如何在 iphone 中做到这一点??? 请帮我解决我的问题..thanx

- (void)viewDidLoad
 {

  tapCount=0;
  attempt=0; 
  password=@"";

tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(cancel:)];
[self.view addGestureRecognizer:tap];
[self.navigationController.navigationBar setHidden:YES];



[super viewDidLoad];
self.passwordSet=NO;
// Do any additional setup after loading the view.
}

【问题讨论】:

    标签: iphone objective-c ios xcode lockscreen


    【解决方案1】:

    【讨论】:

      【解决方案2】:

      好的,可以使用here提供的示例代码来完成IOS的android模式锁

      【讨论】:

      • Thanx @Sumanth 我想用 ARC OFF... 但它不起作用//
      • 看你应该做一些任务。通过添加发布来制作代码,或者如果你不是那么多,那么Add the flag -fobjc-arc to the files that you'd like to use ARC. It's just the opposite of the other.
      猜你喜欢
      • 2023-01-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多