Hello Reda,
Welcome to the Forum,
There is not a lot of support for the iOS CoreBluetooth Framework in this forum. You will have to use stackoverflow.com or the Apple Developers forum for programming you device.
I suggest that you go through the TI example App step-by-step and at every step that you do not understand, you post it to the forums I mentioned. This way you will not only have a better understanding of the code, you will also find alternative to complete your task,
Thanks,