[ios] Removed excess controller.

This commit is contained in:
VladiMihaylenko 2016-03-25 19:07:55 +03:00
parent 7eff1ed042
commit 208836000d
25 changed files with 0 additions and 230 deletions

View file

@ -1,5 +0,0 @@
#import "MWMViewController.h"
@interface MWMAuthorizationForgottenPasswordViewController : MWMViewController
@end

View file

@ -1,72 +0,0 @@
#import "MWMAuthorizationForgottenPasswordViewController.h"
#import "UIColor+MapsMeColor.h"
#import "UITextField+RuntimeAttributes.h"
@interface MWMAuthorizationForgottenPasswordViewController () <UITextFieldDelegate>
@property (weak, nonatomic) IBOutlet UITextField * emailTextField;
@property (weak, nonatomic) IBOutlet UIButton * resetPasswordButton;
@property (nonatomic) BOOL isCorrect;
@end
@implementation MWMAuthorizationForgottenPasswordViewController
- (void)viewDidLoad
{
[super viewDidLoad];
self.title = L(@"forgot_password").capitalizedString;
self.isCorrect = NO;
}
- (BOOL)shouldAutorotate
{
return NO;
}
#pragma mark - UITextFieldDelegate
- (BOOL)textField:(UITextField *)textField
shouldChangeCharactersInRange:(NSRange)range
replacementString:(NSString *)string
{
NSString * newString =
[textField.text stringByReplacingCharactersInRange:range withString:string];
self.isCorrect = [textField.validator validateString:newString];
return YES;
}
- (BOOL)textFieldShouldReturn:(UITextField *)textField
{
[self resetPassword];
return YES;
}
#pragma mark - Actions
- (IBAction)resetPassword
{
if (!self.resetPasswordButton.enabled)
return;
// TODO: Add password recovery
[self cancel];
}
- (IBAction)cancel
{
[self.navigationController popViewControllerAnimated:YES];
}
#pragma mark - Properties
- (void)setIsCorrect:(BOOL)isCorrect
{
_isCorrect = isCorrect;
self.resetPasswordButton.enabled = isCorrect;
CALayer * layer = self.resetPasswordButton.layer;
layer.borderColor = (isCorrect ? [UIColor linkBlue] : [UIColor clearColor]).CGColor;
}
@end

View file

@ -1,26 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "ic_device.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "ic_device@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "ic_device@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"template-rendering-intent" : "template"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 139 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 195 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 277 B

View file

@ -1,26 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "ic_more.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "ic_more@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "ic_more@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"template-rendering-intent" : "template"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 173 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 392 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 594 B

View file

@ -1,21 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "ic_placeholder.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1 KiB

View file

@ -1,26 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "ic_upload.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "ic_upload@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "ic_upload@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"template-rendering-intent" : "template"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 367 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 680 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1 KiB

View file

@ -1,23 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "login_facebook.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "login_facebook@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "login_facebook@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 174 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 246 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 313 B

View file

@ -1,23 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "login_google.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "login_google@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "login_google@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 692 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB

View file

@ -191,8 +191,6 @@
34ABA62C1C2D57D500FE1BEC /* MWMInputPasswordValidator.mm in Sources */ = {isa = PBXBuildFile; fileRef = 34ABA62B1C2D57D500FE1BEC /* MWMInputPasswordValidator.mm */; };
34ABA62D1C2D57D500FE1BEC /* MWMInputPasswordValidator.mm in Sources */ = {isa = PBXBuildFile; fileRef = 34ABA62B1C2D57D500FE1BEC /* MWMInputPasswordValidator.mm */; };
34ABA6301C2D58F300FE1BEC /* MWMInputEmailValidator.mm in Sources */ = {isa = PBXBuildFile; fileRef = 34ABA62F1C2D58F300FE1BEC /* MWMInputEmailValidator.mm */; };
34ABA6341C2D64D400FE1BEC /* MWMAuthorizationForgottenPasswordViewController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 34ABA6331C2D64D400FE1BEC /* MWMAuthorizationForgottenPasswordViewController.mm */; };
34ABA6351C2D64D400FE1BEC /* MWMAuthorizationForgottenPasswordViewController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 34ABA6331C2D64D400FE1BEC /* MWMAuthorizationForgottenPasswordViewController.mm */; };
34B16C451B72655D000D3A0D /* MWMPedestrianShareAlert.mm in Sources */ = {isa = PBXBuildFile; fileRef = 34B16C441B72655D000D3A0D /* MWMPedestrianShareAlert.mm */; };
34B6CF5D1BBBFC6B009203C6 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 34B6CF5C1BBBFC6B009203C6 /* LaunchScreen.storyboard */; };
34B82AB21B8344E300180497 /* MWMSearchTextField.mm in Sources */ = {isa = PBXBuildFile; fileRef = 34B82AB11B8344E300180497 /* MWMSearchTextField.mm */; };
@ -1059,8 +1057,6 @@
34ABA62B1C2D57D500FE1BEC /* MWMInputPasswordValidator.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MWMInputPasswordValidator.mm; sourceTree = "<group>"; };
34ABA62E1C2D58F300FE1BEC /* MWMInputEmailValidator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MWMInputEmailValidator.h; sourceTree = "<group>"; };
34ABA62F1C2D58F300FE1BEC /* MWMInputEmailValidator.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MWMInputEmailValidator.mm; sourceTree = "<group>"; };
34ABA6321C2D64D300FE1BEC /* MWMAuthorizationForgottenPasswordViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MWMAuthorizationForgottenPasswordViewController.h; sourceTree = "<group>"; };
34ABA6331C2D64D400FE1BEC /* MWMAuthorizationForgottenPasswordViewController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MWMAuthorizationForgottenPasswordViewController.mm; sourceTree = "<group>"; };
34B16C431B72655D000D3A0D /* MWMPedestrianShareAlert.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MWMPedestrianShareAlert.h; sourceTree = "<group>"; };
34B16C441B72655D000D3A0D /* MWMPedestrianShareAlert.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MWMPedestrianShareAlert.mm; sourceTree = "<group>"; };
34B6CF5C1BBBFC6B009203C6 /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = LaunchScreen.storyboard; sourceTree = "<group>"; };
@ -2114,8 +2110,6 @@
342CC5F01C2D7730005F3FE5 /* MWMAuthorizationLoginViewController.mm */,
34ABA6141C2D185B00FE1BEC /* MWMAuthorizationOSMLoginViewController.h */,
34ABA6151C2D185B00FE1BEC /* MWMAuthorizationOSMLoginViewController.mm */,
34ABA6321C2D64D300FE1BEC /* MWMAuthorizationForgottenPasswordViewController.h */,
34ABA6331C2D64D400FE1BEC /* MWMAuthorizationForgottenPasswordViewController.mm */,
34BF0CC81C31306300D097EB /* MWMAuthorizationCommon.h */,
34BF0CC51C31304A00D097EB /* MWMAuthorizationCommon.mm */,
342EE40F1C43DAA7009F6A49 /* MWMAuthorizationWebViewLoginViewController.h */,
@ -3577,7 +3571,6 @@
F6F722F81AE1572400DA3DA1 /* MWMiPhonePortraitPlacePage.mm in Sources */,
F6CB21681AEFC6AA00FB8963 /* MWMPlacePageActionBar.mm in Sources */,
F68E6BD21B8DB7AE0040566D /* MWMRouteHelperPanel.mm in Sources */,
34ABA6341C2D64D400FE1BEC /* MWMAuthorizationForgottenPasswordViewController.mm in Sources */,
34E273251C73876500463965 /* MWMMigrationView.mm in Sources */,
347FD87B1C60B2CE002FB65E /* MWMOpeningHoursDeleteScheduleTableViewCell.mm in Sources */,
34BC72291B0DECAE0012A34B /* MWMZoomButtons.mm in Sources */,
@ -3791,7 +3784,6 @@
6741A9C41BF340DE002C974C /* MWMRouteHelperPanel.mm in Sources */,
6741A9C51BF340DE002C974C /* MWMZoomButtons.mm in Sources */,
6741A9C61BF340DE002C974C /* MWMSearchCommonCell.mm in Sources */,
34ABA6351C2D64D400FE1BEC /* MWMAuthorizationForgottenPasswordViewController.mm in Sources */,
34E273261C73876500463965 /* MWMMigrationView.mm in Sources */,
340C20E41C3E565600111D22 /* MWMCuisineEditorViewController.mm in Sources */,
6741A9C81BF340DE002C974C /* MWMiPhoneLandscapePlacePage.mm in Sources */,