Fix bug with autoPinEdgesToSuperviewEdgesWithInsets:

- Fix bug with incorrect attributes being used
- Convert to using other methods in the API