Center controller

Hi I have did a small change so that your class can support iOS7 as well.It has been there in one of the issues as well and I commented over there as well.