1.将老的xib里面的view删除,添加新的view 2.选择xib文件的“File's Owner” 3.右边的custom class将class设置为自己xib文件名即可(默认是nsobject)