changed the example code for twitter ios5 support