Reply:
IB or use the code to build their own view ......
Reply:
How to use "code generation interface" mean?
Reply:
UIImageView * imgBg = [[UIImageView alloc] initWithFrame: CGRectMake (0, 0, self.view.frame.size.width, self.view.frame.size.height)];
[ImgBg setImage: [UIImage imageNamed: @ "bg_01.png"]];
[Self.view addSubview: imgBg];
[ImgBg release];
UIImageView * imgTitle = [[UIImageView alloc] initWithFrame: CGRectMake (20, 20, 165/2, 38/2)];
[ImgTitle setImage: [UIImage imageNamed: @ "dl_picture_12_03.png"]];
[Self.view addSubview: imgTitle];
[ImgTitle release];
Similar to this written in viewDidLoad on it ......
Reply:
ios default controls can be used as elements of your layout to use. view is like a canvas, you can freely layout the top of your page elements. Position of the element is determined by its coordinates on the canvas to decide. For beginners xib to design your layout is quite a good choice, it allows you to visualize the layout. Without requiring you to be too concerned about the position of elements on the canvas.
Use the code to create the interface, the custom has an advantage, more controllable. However, there are requirements for the code, you need to be familiar with the use of various properties of the control, in order to solve a variety of effects you want to achieve.
Reply:
storyboard + xib + pure code
Reply:
And Microsoft's control layout similar idea is to put Xib layout code file or in the Nib, can not directly modify the code to create the control file.
Also supports drag controls, but also support the use of code to control the position of the controls, such as LS said.
But IOS IOS interface when creating projects selected Apple gave several fixed interface mode (5,6 looks like species), the main interface of many existing IOS product, QQ, micro-channel, Taobao, microblogging in the layout is the same. Game interface with professional game interface engine, not out of this range.
IOS interface settings relative to Microsoft, is still very dead.
Reply:
storyboard, xib, pure code. See the project needs and personal habit of it.
Reply:
No comments:
Post a Comment