iphone cocos create auto lock slider