Guest User

Untitled

a guest
Jan 24th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. - (void)alertView:(UIAlertView *)alert didDismissWithButtonIndex:(NSInteger)buttonIndex {
  2. if ([alert tag] == 1){
  3. NSDictionary* dict = [NSDictionary dictionaryWithContentsOfFile:@"/var/mobile/Library/Preferences/com.abart997.folderlock.plist"];
  4. NSString *password = (id)[dict objectForKey:@"numberString"] ?: @"";
  5. }
  6. }
  7.  
  8. if ([password isEqualToString:@""] && buttonIndex != 0 && buttonIndex != 3){
  9. UIAlertView *alert2 =[[UIAlertView alloc] initWithTitle:@"FolderLock" message:@"No name or password set.Set they via Setting's app." delegate:self cancelButtonTitle:@"Ok" otherButtonTitles:nil];
  10. [alert2 show];
  11. [alert2 release];
Add Comment
Please, Sign In to add comment