iOS printing formatting

I have been reading through apples printing documentation today to implement it into my app, which is basically a form contained within a scroll view, everything is going just fine however the margins aren't working. Here's my code: