2012-07-25 122 views
0

我想在我的iPhone應用程序中創建一個android模式鎖定屏幕... 但我不知道該怎麼做...我搜索了很多,但沒有得到。 任何人都可以有一個想法如何在iPhone中做到這一點? PLZ幫我解決我的問題.. .thanx如何在iphone中設計Android模式鎖定屏幕

- (void)viewDidLoad 
{ 

    tapCount=0; 
    attempt=0; 
    [email protected]""; 

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. 
} 

回答

1

好了IOS Android的解鎖圖案可以使用示例代碼提供here

完成
+0

Thanx @Sumanth我想這與ARC OFF ...但它不工作// – Rox 2012-07-25 10:56:32

+1

看你應該做一些任務。通過添加版本來添加代碼,或者如果你沒有那麼多,請將標誌-fobjc-arc添加到您想要使用ARC的文件中。這只是對方的另一種。' – Sumanth 2012-07-25 11:00:45

+0

Thanx很多@Sumanth ........它工作.... – Rox 2012-07-25 11:10:58