fix compile error for xcode.
change designement.