iOS SDK: Conjoined Text Fields
I don't know if I'm completely missing the boat here or what, but I can't figure out how to开发者_运维技巧 achieve conjoined email/password text fields like on the flow login screen. Any help is appreciated!
FYI: I'm using XCode 3.2.5
It's a custom table view cell with a label and a text field in a grouped table view probably with a single section and two rows one of which is for username and other for password. The logo could be the table view's header.
There is a simpler solution that requires no code. If you have Photoshop, all you need to do is:
- Make a new file (I recommend using the size of iPhone/iPad so you get the right size of the box you will make)
- Use the Rounded Rectangle tool to make your box
- Use the Line Tool to divide it up into the rows you want
- Then just add it to your app as an image
- Use text inputs with no borders, size them, and wa-la!
Super easy even for those not familiar with Photoshop.
Using XCode, Interface Builder, and Storyboards and Static Content. UITableViews with static content are a new feature in Xcode 4.2 that allow tables to be designed WYSIWYG. Cells can be dragged into the table and customized by changing properties and adding controls. In previous versions of Xcode each cell would be a separate XIB file.
精彩评论