Finish the code of Shutterbug,both work fine on ipad/iphone