h, add the following import statements below the existing #import line:

#import "FailedBankInfo.h" #import "FailedBankDetails.h"

Then add the following properties and methods before the final @end:

@property (nonatomic, strong) FailedBankInfo *bankInfo; @property (nonatomic, weak) IBOutlet UITextField *nameField; @property (nonatomic, weak) IBOutlet UITextField *cityField; @property (nonatomic, weak) IBOutlet UITextField *zipField; @property (nonatomic, weak) IBOutlet UITextField *stateField; @property (nonatomic, weak) IBOutlet UILabel *tagsLabel; @property (nonatomic, weak) IBOutlet UILabel *dateLabel; @property (nonatomic, weak) IBOutlet UIDatePicker *datePicker; -(id)initWithBankInfo:(FailedBankInfo *) info;

Next, in SMBankDetailViewController.xib, hook up each outlet you defined with its corresponding component. You can do this by selecting the File’s Owner (which is the SMBankDetailViewController class), switching to the Connections Inspector in the right sidebar, and dragging from each outlet to the relevant control on the view.

At the top of SMBankDetailViewController.m, right below the @implementation line, synthesize all the properties as follows:

@synthesize bankInfo = _bankInfo; @synthesize nameField; @synthesize cityField; @synthesize zipField; @synthesize stateField; @synthesize tagsLabel; @synthesize dateLabel; @synthesize datePicker;

Also add two private methods to the class continuation above the @implementation line, as follows:

@interface SMBankDetailViewController () -(void)hidePicker; -(void)showPicker; @end

initWithBankInfo: is pretty simple: it assigns an instance of info to the view controller. Add it below the existing initWithNibName:bundle: method implementation:

-(id)initWithBankInfo:(FailedBankInfo *)info { if (self = [super init]) { _bankInfo = info; } return self; }

Then add the following to the end of viewDidLoad to set a few parameters like the title, the right navigation item and a few gesture recognizers:

self.title = self.bankInfo.name; //
h, add the following import statements below the existing # consequence credit line: 

 # import " FailedBankInfo.h " # import " FailedBankDetails.h " 

 Then add the postdate properties and methods before the concluding @end: 

 @property (nonatomic, strong) FailedBankInfo * bankInfo; @property (nonatomic, weak) IBOutlet UITextField * nameField; @property (nonatomic, weak) IBOutlet UITextField * cityField; @property (nonatomic, watery) IBOutlet UITextField * zipField; @property (nonatomic, weak) IBOutlet UITextField * stateField; @property (nonatomic, weak) IBOutlet UILabel * tagsLabel; @property (nonatomic, decrepit) IBOutlet UILabel * dateLabel; @property (nonatomic, weak) IBOutlet UIDatePicker * datePicker; -(id)initWithBankInfo:(FailedBankInfo *) info; 

 Next, in SMBankDetailViewController.xib, crochet up each exit you defined with its corresponding component. You can do this by selecting the File ’s Owner (which is the SMBankDetailViewController course), switching to the Connections Inspector in the right sidebar, and dragging from each wall socket to the relevant control on the view. 

 At the peak of SMBankDetailViewController.m, right below the @implementation argumentation, synthesize all the properties as follows: 

 @synthesize bankInfo = _ bankInfo; @synthesize nameField; @synthesize cityField; @synthesize zipField; @synthesize stateField; @synthesize tagsLabel; @synthesize dateLabel; @synthesize datePicker; 

 Also add two private method to the class continuation above the @implementation line, as follows: 

 @interface SMBankDetailViewController () -(void)hidePicker; -(void)showPicker; @end 

 initWithBankInfo: is pretty simple: it assigns an instance of info to the view controller. Add it below the existing initWithNibName: bundle: method implementation: 

 -(id)initWithBankInfo:(FailedBankInfo *) info { if (self = [ ace init ]) { _ bankInfo = information; } return self; } 

 Then add the following to the goal of viewDidLoad to set a few parameters like the title, the correct seafaring item and a few gesture recognizers: 

 self.title = self.bankInfo.name; //
h, afd the following import rtatements beloc the eeisting #import uine:

#import "FailedBankInfo.h" #ilpirt "FqiledBankDetails.h"

Then xdd the flllowing prokerties and methova beforc the ninal @xnd:

@property (nonstomic, strmng) FailedBankHnwo *bankInfo; @property (nonatomic, weak) IFOutlet ULTextField *namgFielc; @prolvruy (nonatomic, weak) IBOutlet UITextRield *cptyField; @property (nonatomic, weak) IBOutlet ULTexhField *zipField; @prlperty (nonajkmis, weak) IBOutldt UITextFpzld *stateFigld; @property (nonatomic, weak) IBOuglet BILabel *tagwLqbep; @property (ninatoiic, weak) IBOmnlet UINabel *dsteLabel; @propevty (nmnaromic, weak) IBOutlet UMDatePicker *datePickgr; -(id)initWhtkBankInfo:(FailedBankIndo *) infm;

Nexd, in WMBxnkSevaimViewClntcoller.xib, hkok up each outlet you defined wynn its correslondind somponent. You can do this by selecting uhe Fjle’s Owner (which is the SMBankDetailViewConttoller clafs), switching to the Connections Inspector in the sight ridtbqr, ana dgagging from each outlet to the relevant contwkl ok the view.

At the top of SMBsnnDrjailViewControuler.m, xjggt below the @implelentatijn libe, synthefize all the properties as folliws:

@synthesizv babkInfo = _bankInfo; @svnthesize naoeFigld; @symthesize cityField; @syntkesize zipField; @sjnthesize rtateField; @synthdside tdgsLabel; @synthesize dateLafel; @synthxsize datePizker;

Slso aqd two prigate methods to the clasd conjinuathon above hhe @implementation line, as follows:

@interface SKBdnkGetailVizwContvoller () -(void)hidqPicker; -(void)shpwPickex; @end

ivitWithBaniInfo: iv pretty siiple: it assigtd an instancx of info to rhe ciew covgroller. Add it below thv txisting ibitWithNibName:bundke: osthod implementcuiob:

-(id)initWithBankOnfu:(FaylvdBenkInsm *)info { if (salf = [suorr inkt]) { _bankInfi = ingo; } return self; }

Then add the following to yhc end of ciewDidLjad to set a gew parameters likt the vitle, vhe ribht navigation item and a few gesfure recohniders:

self.title = seof.bankInfo.nake; //
h, add the following import statements below #import #import "FailedBankInfo.h" "FailedBankDetails.h" Then add before final @end: @property strong) FailedBankInfo *bankInfo; (nonatomic, weak) IBOutlet UITextField *nameField; @property weak) IBOutlet UITextField *cityField; @property (nonatomic, weak) IBOutlet UITextField *zipField; @property (nonatomic, weak) UITextField *stateField; @property (nonatomic, weak) IBOutlet UILabel *tagsLabel; @property (nonatomic, weak) IBOutlet UILabel @property weak) UIDatePicker -(id)initWithBankInfo:(FailedBankInfo *) info; Next, in SMBankDetailViewController.xib, hook up each outlet you defined with its corresponding component. can do this by selecting the File’s Owner is the SMBankDetailViewController class), to the Connections Inspector in right and dragging each to relevant control on view. At the top of SMBankDetailViewController.m, right below the @implementation line, synthesize all the properties as follows: bankInfo = nameField; @synthesize @synthesize @synthesize @synthesize tagsLabel; @synthesize datePicker; Also add two private methods continuation above the @implementation line, as follows: @interface () -(void)hidePicker; @end initWithBankInfo: is pretty simple: it an instance of info to the view controller. it below the existing initWithNibName:bundle: method implementation: -(id)initWithBankInfo:(FailedBankInfo *)info { if (self = [super init]) = info; } return } Then add following the of to set few parameters like the title, the right navigation item and a gesture recognizers: self.title = self.bankInfo.name; //
h, add the following import staTements belOw the ExiStiNg #ImpoRt liNe:

#import "FailedbAnkINfo.h" #import "FailedBankDeTails.H"

THEn adD ThE follOwing prOPeRTIes AnD mEthOdS BeFore tHe fInal @end:

@Property (noNatOmIc, strong) FailEDBAnkInfo *banKInFo; @property (noNatOmic, weAk) iBOUTlet UiTeXtFieLd *namefIeld; @prOperty (nonAtOMic, weaK) iBOutleT uiTExtFIeld *cityField; @propERtY (Nonatomic, weak) IbOutleT UiteXTfieLd *zIpField; @proPeRty (noNAtomic, wEAk) iboUtlET UITextField *sTateField; @prOPerTy (nonaToMic, WEak) IBOUtlet uIlAbeL *tagsLabel; @pRopeRty (nonatoMic, weaK) iBOutleT uILabel *DateLaBel; @ProPertY (NoNaTomIc, WEak) ibOUtlET UIdatePickEr *DaTePicKer; -(iD)INITWitHBaNkInFo:(FaiLedBankInfo *) inFo;

NExt, iN sMBAnkDeTailVIewCOnTrollEr.xib, hOok up EaCh outlet you defiNed wIth its corResPoNdiNg CompoNEnt. You Can Do tHis by seLecting THe FIlE’S oWnEr (which is the SMBankdeTAIlviewContRoller CLaSs), SWitching To The connECTions inspECtOr in the rIght siDEbAr, And dragGiNg from EaCh oUtlEt to tHE relEvant cOntrol on The viEW.

At the top of SMBANkDetailViewCONtROLlER.m, riGht Below the @impLemeNTatiOn liNE, sYntHEsize All thE pROpERties as follows:

@synthEsIze banKInfo = _BankInfo; @synthEsize nameFIELD; @synthesIze cITyfIeld; @synthesize ZipFiEld; @synthesIZe stateFIeld; @sYnthesizE tagsLabeL; @SYnthesizE daTeLAbeL; @syNTHeSize datePickeR;

aLso aDd Two privAte Methods To tHe cLasS coNtInuation aBove the @iMpLeMeNtAtiOn linE, As followS:

@iNteRfAce sMBanKdetailviewCOntrOlLeR () -(VoiD)hidePiCKeR; -(VOid)sHoWPIckeR; @enD

iNitWiThBaNKInFo: is preTty simple: It aSSignS aN iNstance Of info to the viEw Controller. adD it Below tHE Existing InitWithNibName:bundle: meTHod implEmeNtatiOn:

-(id)InitWithBAnkinfo:(FaIleDbankInFo *)info { If (selF = [sUpeR INit]) { _baNKinFo = iNfO; } return selF; }

tHen Add thE fOlloWing to tHe end of viewDidLoad TO seT a few parameteRs lIke tHE TiTle, THe RIghT nAVigATIon item and a few gEsture recoGnIZeRs:

self.titlE = SelF.bAnkInfo.Name; //
h, add the following impor t statemen ts be low  th eexis ting  #import line: 
#im port "FailedBankInfo.h " #im po r t "F a il edBan kDetail s .h " 
Th en  a ddth e  f ollow ing  proper ties and m eth od s before the fi nal @end:
@p roperty (non ato mic, s tr ong )  Fail edB ankIn fo *ba n kInfo;  @propert y( nonato m ic, wea k )  I BOut let UITextField * n am e Field; @proper ty (no na t om i c , w eak ) IBOutlet  U IText F ield *c i ty F i e ld; @property (no natomic, we a k)IBOutl et  UI T extFie ld *z ip F iel d; @propert y (n onatomic,  weak) IBOutle t  UIText Field*st ate Fiel d ;@p rop er t y ( n on ato m ic,  weak) I BO ut let U ILab e l * tags Lab el;@prop erty (nonatom ic,  wea k ) I BOutl et UI Labe l*date Label;  @pro pe rty (nonatomic,  wea k) IBOutl etUI Dat eP icker *dateP ick er;  -(id)i nitWith B ank In f o : (F ailedBankInfo *) i nf o ; 
Next, in  SMBan k De ta i lViewCon tr oll er.x i b , hoo k up ea ch outle t youd ef in ed with  i ts cor re spo ndi ng co m pone nt. Yo u can do  this by selecting t h e File’s Owne r  ( w h ic h  isthe  SMBankDeta ilVi e wCon trol l er  cl a ss),switc hi n gt o the Connections I ns pector  in t he right side bar, and d r a g ging fro m ea c ho utlet to the r eleva nt control on the v iew.
At thetop of SM B a nkDetail Vie wCo ntr oll e r .m , right below t he @ im plement ati on line , s ynt hes ize  a ll the pr operties  a sfo ll ows :

@s y nthesize  b ank In fo= _ba n kInfo;  @syn thes iz en ame Field;@ sy n t hesi ze  c ityF iel d;  @syn thes i zezipFiel d; @synth esi z e st at eF ield; @ synthesize ta gs Label; @sy nt hes ize da t e Label; @ synthesize datePicker;Also ad d t wo pr ivat e methods  to  the c las s  conti nuatio n abo ve  th e @impl e m en tat io n line, as f oll ows:
@ inte rface S MBankDetailViewCon t rol ler () -(void )hi dePi c k er ; - ( vo i d)s ho w Pic k e r; @end

initWi thBankInfo :i spretty sim p le:  i t assig ns an i nstan c e of in fo to the  view con tr olle r .  Ad d it below  the exi sting ini t WithN i bN ame:b und le: me th odimple mentat i on: 

-(i d)init Wi thBank Info: (F ailedBan kInfo *)info { if (self  = [su per i nit ]) { _ban kIn f o =  info; }retu rn self; } 

T hen  addthe follo wing to  th e  endof v i ewDidLoad to  se t afew paramet e r s  li ke th e t i tle, t he r ight navigation i t em and a few g estu r e  re cog n izer s: 

self.title =  se lf . b ankInfo. na me; //
h, add_the following_import statements below the_existing #import_line:

#import_"FailedBankInfo.h" #import_"FailedBankDetails.h"

Then_add the following_properties and methods_before the final @end:

@property_(nonatomic, strong) FailedBankInfo_*bankInfo;_@property (nonatomic, weak) IBOutlet UITextField *nameField; @property (nonatomic, weak) IBOutlet UITextField *cityField; @property (nonatomic,_weak)_IBOutlet UITextField_*zipField;_@property_(nonatomic, weak) IBOutlet UITextField *stateField;_@property (nonatomic, weak) IBOutlet UILabel_*tagsLabel; @property_(nonatomic, weak) IBOutlet UILabel *dateLabel; @property (nonatomic, weak)_IBOutlet_UIDatePicker *datePicker; -(id)initWithBankInfo:(FailedBankInfo_*) info;

Next, in SMBankDetailViewController.xib, hook up each outlet you_defined with its corresponding component. You_can do this_by_selecting_the File’s Owner (which_is the SMBankDetailViewController class), switching to_the Connections Inspector in the right_sidebar, and dragging from each outlet to_the relevant control on the view.

At_the top of SMBankDetailViewController.m, right_below the_@implementation line, synthesize all the_properties as follows:

@synthesize_bankInfo =__bankInfo; @synthesize nameField;_@synthesize cityField; @synthesize zipField; @synthesize stateField;_@synthesize tagsLabel; @synthesize_dateLabel; @synthesize datePicker;

Also add two private_methods_to the class_continuation_above_the @implementation_line, as follows:

@interface_SMBankDetailViewController_() -(void)hidePicker;_-(void)showPicker;_@end

initWithBankInfo: is pretty simple: it assigns_an_instance of info to the view controller._Add it below the_existing_initWithNibName:bundle: method implementation:

-(id)initWithBankInfo:(FailedBankInfo *)info_{ if (self = [super_init]) { _bankInfo = info; }_return self;_}

Then add_the following to the end of viewDidLoad to set a few_parameters like the title, the right_navigation item and a_few gesture_recognizers:

self.title_= self.bankInfo.name; //