The first part of the preview part
The development tool used by the author is Apple's Xcode6.0.1, the simulator is iOS8.0. Doing this part of the work requires familiarity with the two UI controls: one is Uiscrollview and the other is Uipagecontrol. These two controls are often mixed together. (also have a certain UI operational basis)
The second part builds the file layout
The developed file layout is as follows:
As for the creation of documents in the project, this is no longer described in detail, please refer to the author's blog "XMPP Framework Import", which has detailed steps.
The third part is the construction of UI interface
A little hit of the Login.storyboard, into the inside dragged into a uinavgationcontroller, and then the right side of the table LAN controller Delete do not, drag a uiviewcontroller, The navigation controller is then used as the root controller of the Uiviewcontroller. Specific actions: Click the navigation controller, press and hold the control key on the computer keyboard, drag a line to Uiviewcontroller, and then pop up a session box, select Rootviewcontroller on the line. Session boxes such as:
Two click on the navigation controller and come to its property bar as the initialization controller:
You start dragging the control under three. Select Uiscrollview to overwrite the view of the entire controller. And then add the same Uipagecontrol,uibutton. special attention needs to be paid here!!!!!! The latter two controls are not added to the Uiscrollview, but are added to the controller's view, otherwise, the two controls will "disappear" with ScrollView's drag! ! The final control order is as follows:
Four control after the addition, is connected to let the controller has these two properties, here I do not say much, relatively simple. After the connection, the controller has properties such as:
Five then come to the file navigation bar:
-------Jump interface is as follows--------""
Six new Main.storyboard, drag the tag bar controller in,
Note: This also needs to check this box;
The UI interface is set up here, which omits some of the steps, and requires that you have the foundation of the UI interface, which is not the center of gravity, so it is not described in detail.
Part IV: Writing code
Don't want to say more, direct:
results of the fifth part
Switch between iOS boot interface and main interface