Posts

Showing posts with the label layout

RayWenderlich.com Layout in IOS Course - Part 3

Some momentum again! I feel positive about the content I'm learning, even if some of it is very complex. Right, straight onto this - I was partway through a challenge. Let's crack on! Start Time - 18:41 Challenge: Custom Alignment Guides OK, something does not seem to be working with this particular project. Errors coming up so just following along to see what Jessy does. This alignment guide is very hard! So it is something I think to revisit at the end of the course. Definitely will need some going over! I didn't have a clue for this one but then there wasn't much of a chance, as even Jessy admits. He says that this is beyond the complexity for most, which is me at this stage! So I'm putting this challenge down to a 'too hard!'. But will have another look another time! ZStacks Has a lot in common with the other two stacks. Zstack represents the background of the view. It uses BOTH horizontal and vertical. 9 built in values to use. So a poin...

Build A Simple iPhone App - Part 4

The next part is about auto layout - size and position etc. This will be useful as already I'm finding that the label is not filling the text well! Introduction to Auto Layout So we use mathematical relationships between elements to determine the position/size etc. Choosing the longest fact (as in the text) and pasting it in ensures that if this fits, they will all fit! Changing the number of lines to 0 ensures it will actually fit in, with some dragging around/changing of size etc. So we are defining constraints, rather than creating external values..... Adding the constraints makes sense - sub menu at the bottom! Positioning and Size This was about positioning the label using several features. The ambiguity issue Pasan had did not come up on mine - maybe due to me having a newer version of Xcode? Anyway, I skimmed over some of this so hopefully will still make sense! Styling Using Interface Elements So this is to make it look more jazzy! So adding a background col...