fix bug when the activeRecord primaryKey property is NSString class
fix interfaceOrientation function
fix orientation function