One , design sketch .

Two , Engineering drawings .

3、 ... and , Code .

RootViewController.h

#import <UIKit/UIKit.h>
@class BECheckBox;
@interface RootViewController : UIViewController
{
BECheckBox *passwordCheck;
}
@property(nonatomic,retain)BECheckBox *passwordCheck; @end

RootViewController.m

#import "RootViewController.h"
// Add header file
#import "BECheckBox.h" @interface RootViewController () @end @implementation RootViewController
@synthesize passwordCheck; - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
}
return self;
} - (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view. // Hide the navigation bar
self.navigationController.navigationBarHidden=YES; // Forget the password button
BECheckBox *passCheckBox=[[BECheckBox alloc]initWithFrame:CGRectMake(61, 55, 80, 30)];
[passCheckBox setTitle:@" Remember the password " forState:UIControlStateNormal];
[passCheckBox setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
passCheckBox.titleLabel.font=[UIFont systemFontOfSize:16];
[passCheckBox setTarget:self fun:@selector(passCheckBoxClick)];
passCheckBox.backgroundColor=[UIColor clearColor];
self.passwordCheck=passCheckBox;
[self.view addSubview:self.passwordCheck]; }
// Remember the password and click
-(void)passCheckBoxClick
{
if ([self.passwordCheck isChecked]) {
NSLog(@" Remember the password ");
}
else {
NSLog(@" Cancel remember password ");
}
} - (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
 
 

【 Code Notes 】iOS- Forget the password and choose the whole button More articles about

  1. 【 Code Notes 】iOS- Single choice box

    One , design sketch . Two , Engineering drawings . 3、 ... and , Code . RootViewController.h #import <UIKit/UIKit.h> @interface RootViewController ...

  2. 【 Code Notes 】iOS- Time selection box

    One , design sketch . Two , Engineering drawings . 3、 ... and , Code . RootViewController.h #import <UIKit/UIKit.h> @interface RootViewControlle ...

  3. 【 Code Notes 】iOS- Custom selection box ( Strength of high bottom )

    One , design sketch Two , Code . ViewController.h #import <UIKit/UIKit.h> @interface ViewController : UIViewControl ...

  4. 【 Code Notes 】iOS- Encrypt the password

    One , Engineering drawings . Two , Code . #import "ViewController.h" #import "Base64CodeByteFunc.h" @interfac ...

  5. 【 Code Notes 】iOS- Custom selection box

    One , design sketch . Two , Engineering drawings . 3、 ... and , Code . RootViewController.h #import <UIKit/UIKit.h> #import "CYCustomMultiSe ...

  6. 【 Code Notes 】Web-CSS-CSS Combination selector

    One , design sketch . Two , Code . <!DOCTYPE html> <html> <head> <meta charset="utf-8"> ...

  7. java web Realization Forget the password ( Retrieve password ) Function and code

    java web Realization Forget the password ( Retrieve password ) Function and code ( One ). General idea ( Two ). Partial screenshots ( 3、 ... and ). Part of the code ( One ). General idea : 1. stay Find the password page entry full name . Email and verification code , After entering, click [ Submit ] Button , ...

  8. JavaMail Learning notes ( 7、 ... and )、 Account activation and password forgetting example (zhuan)

    One . Account activation   In many cases , After registering a user on some sites , The website will give this user to fill in when registering email Address to send an account activation email , The content of this email is a link to activate the account and a short text description , If the user doesn't go to the mailbox, it will ...

  9. DW Web code Notes

    DW Web code Notes 1. style .       class  Insert class style   Labelling technology (html) Solve the content style technology of page (css) Solve the appearance of the page script technology        Solve the problem of page dynamic interaction <form> ...

Random recommendation

  1. FreeBSD10 Try to compile on DeepIn UI

    After more than 200 command input attempts , It's finally done . 1 git clone https://github.com/linuxdeepin/deepin-ui.git 11 git clone https://g ...

  2. php The development website code unifies the question

    A good website code is neat , Proper annotation is the most basic , It's also a good habit , This can avoid the future very chaotic, I feel chaotic , Once refactoring is done, it's time-consuming and laborious , The coding of the whole website system is the most important aspect , For the stability of the website php Program ,H ...

  3. model Object setter Methods use , Solution to remove the space and the number into a string display method

    1. When the mobile phone number is registered in the system , Can't contain spaces before and after . stay model Object ~! private String mobile; public String getMobile() { return mobil ...

  4. Swift Theme color top solution

    One . General theme color use point The theme color will be set before the app is released , In a unified application style ( There may be multiple themes ). There are several aspects in the theme color setting , as follows : 1. TabBar part , Set the picture highlight . Text height color 2. Navigatio ...

  5. jquery easyui Accordion Use

    <html> <head> <script src="jquery-easyui/jquery.min.js"></script> ...

  6. NSDictionary Internal implementation

    NSDictionary yes IOS One used in key-value Containers , Reference resources cocotron Source code ,NSDictionary Use NSMapTable Realization . NSMapTable It's also a key-valu ...

  7. Python- function -Day4

    1. function 1.1. aggregate The main role : duplicate removal Relationship testing , intersection \ Difference set \ Combine \ reverse ( symmetry ) Difference set a = {1,2,3,4} b ={3,4,5,6} a {1, 2, 3, 4} type(a) <c ...

  8. Why use Docker

    As a new way of virtualization ,Docker There are many advantages to traditional virtualization . First ,Docker The container can be started in seconds , This is much faster than the traditional virtual machine approach . secondly ,Docker The utilization rate of system resources is very high ...

  9. boston_housing- Multiple classification problem

    from keras.datasets import boston_housing import numpy as np from keras import models from keras imp ...

  10. Django Series of blogs ( fourteen )

    Django Series of blogs ( fourteen ) Preface This blog is about html Use in ajax Data interaction with the background . What is? ajax ajax(Asynchronous Javascript And XML) translate ...