typedef enum {

    MJMessageTypeMe=,
MJMessageTypeOther
}MJMessageType;
/**
*信息的类型
*
*/
@property (nonatomic ,assign)MJMessageType type;

调用enum

 if(message.type==MJMessageTypeOther)
{
textX=CGRectGetMaxX(_iconF)+padding;
}else{
textX=iconX-padding-textBtnSize.width;
}
05-26 02:46