Made view method comply with iOS signature