Welcome, Guest
Username Password: Remember me

Passcode or Password Screen
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Passcode or Password Screen

Passcode or Password Screen 1 year, 4 months ago #1

Evening

I know this is probably not an STV related thing, but just thought I would check in case.

I would like to add in a Passcode or Password screen when my app starts up.

Can STV help work / help with this ? if not, is there sample code out there - If there is, I have not managed to find it.

Iain
  • ihmunro
  • OFFLINE
  • Expert Boarder
  • Posts: 135
  • Karma: 0

Re: Passcode or Password Screen 1 year, 4 months ago #2

Hi Iain,

You're right, this isn't an STV related thing, unless you want to display the password field as an SCTextFieldCell in a table view.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72

Re: Passcode or Password Screen 1 year, 4 months ago #3

Oliver Drobnik (aka Dr. Touch) from Cocoanetics has a Passcode Lock screen he sells in his parts store:

www.cocoanetics.com/parts/dtpinlockcontroller/
  • tapforms
  • OFFLINE
  • Expert Boarder
  • Posts: 120
  • Karma: 4
Thanks!
Brendan
www.tapforms.com

Re: Passcode or Password Screen 1 year, 4 months ago #4

tapforms wrote:
Oliver Drobnik (aka Dr. Touch) from Cocoanetics has a Passcode Lock screen he sells in his parts store:

www.cocoanetics.com/parts/dtpinlockcontroller/


Wow, he sells that for 100 Euros??? I wrote my own and it took me one hour. No thanks! Let me know if you want the code, I'll give it to you.
  • chitoiur
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0

Re: Passcode or Password Screen 1 year, 4 months ago #5

Wow, he sells that for 100 Euros??? I wrote my own and it took me one hour. No thanks! Let me know if you want the code, I'll give it to you.


I can foresee needing something like this in the future. If you don't mind I'll take a look.

This e-mail address is being protected from spambots. You need JavaScript enabled to view it
  • panamind
  • OFFLINE
  • Senior Boarder
  • Posts: 77
  • Karma: 4

Re: Passcode or Password Screen 1 year, 4 months ago #6

panamind wrote:
Wow, he sells that for 100 Euros??? I wrote my own and it took me one hour. No thanks! Let me know if you want the code, I'll give it to you.


I can foresee needing something like this in the future. If you don't mind I'll take a look.

This e-mail address is being protected from spambots. You need JavaScript enabled to view it


I've attached it below. I'm in a rush, so I didn't have time to remove code specific to my app, but you should be able to figure out what fits and what doesn't. Basically, you can use this two ways. The first is when you parent it off the window, in which case you need to set the parent to whatever displayed it (look in the done function). The other case is when you are pushing it, in which case there is no parent. The controller doubles up as a way to set the passcode as well. In this case you would set areSetting to YES. Code below.

This being said, it's probably not as awesome as his, but still... 100 Euros?

Let me know if you find any glaring issues in the code while you're at it!

With parent:
passcodeViewController = [[PasscodeViewController alloc] initWithNibName:@"PasscodeViewController" bundle:nil];
passcodeViewController.parent = self;
passcodeViewController.areSetting = NO;
[window addSubview:passcodeViewController.view];
[passcodeViewController showKeyboard];


Without parent:
passcodeViewController.parent = nil;
passcodeViewController.areSetting = YES;
passcodeViewController.navigationItem.title = @"Set Passcode";
UIBarButtonItem *backButton = [[UIBarButtonItem alloc] initWithTitle:@"Reset" style:UIBarButtonItemStyleBordered target:nil action:nil];
self.navigationItem.backBarButtonItem = backButton;
[backButton release];
[self.navigationController pushViewController:passcodeViewController animated:YES];
[passcodeViewController showKeyboard];
This attachment is hidden for guests. Please log in or register to see it.
Attachments:
  • Attachment This attachment is hidden for guests. Please log in or register to see it.
  • chitoiur
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
Last Edit: 1 year, 4 months ago by chitoiur.
  • Page:
  • 1
Time to create page: 1.79 seconds