-(Uiview *) findview :( uiview *) aview withname :( nsstring *) name {
Class Cl = [aview class];
Nsstring * DESC = [CL description];
If ([name isequaltostring: DESC])
Return aview;
For (nsuinteger I =
0; I <[aview. subviews
Count]; I ++)
{
Uiview * subview = [aview. subviews
Objectatindex: I];
Subview = [self
Findview: subview withname: Name];
If (subview)
Return subview;
}
Return nil;
}
-(Void) addsomeelements :( uiviewcontroller *) viewcontroller {
Uiview * plcameraview = [self
Findview: viewcontroller. View
Withname: @ "plcameraview"];
Uiview * bottombar = [self
Findview: plcameraview withname: @ "plcropoverlaybottombar"];
Uiimageview * bottombarimageforsave = [bottombar. subviews
Objectatindex: 0];
Uibutton * retakebutton = [bottombarimageforsave. subviews
Objectatindex: 0];
[Retakebutton
Settitle: @ "replaying"
Forstate: uicontrolstatenormal];
// Button in the lower left corner
Uibutton * usebutton = [bottombarimageforsave. subviews
Objectatindex: 1];
[Usebutton
Settitle: @ "Upload"
Forstate: uicontrolstatenormal];
// Button in the lower right corner
}
-(Void) navigationcontroller :( uinavigationcontroller *) navigationcontroller willshowviewcontroller :( uiviewcontroller
*) Viewcontroller animated :( bool) animated {
[Self
Addsomeelements: viewcontroller];
}