patch for ios8, added rotation to demo app

props @johnnymajor