I am planning to develop an gyroscope based project like rotating an opengl texture using gyroscope data, is there any sample code released from apple about
CoreMotion is how to get gyroscope data. Look at CMGyrodata for raw data or use the DeviceMotion attitude and rotation rate properties.
I'd recommend watching the 'Device Motion' WWDC session if you're a registered apple developer.