First commit total code from iOS side---