I need to create a cameraoverlay
view(to add on ZBar sdk reader
), my question is how can I create all objects I need not programmatically. right now I create all objects programmatically and then add them to myView
, and use myView
as cameraoverlay
view.
[self.myView addSubview: myImage];
[self.myView addSubview: self.mylabel];
[self.myView addSubview: myButton];
reader.cameraOverlayView=self.myView;
I tried to add another control view and added a view to it then made a tabbar and tried this code which doesn't work:
TestViewController *test=[[TestViewController alloc]init];
reader.cameraOverlayView=test.testView;
making objects programmatically is hard for me is this possible to find source code for objects which created in xcode
, for example when I create a custom button in xcode
can I find source code which has generated for this button and just copy it in my program.