我有一个UILabel对象,calloutLabel,它是使用编程自动布局创建的:-(void)setupCalloutLabel{UILabel*calloutLabel=[UILabelnewAutoLayoutView];calloutLabel.backgroundColor=[UIColorclearColor];calloutLabel.textAlignment=NSTextAlignmentCenter;calloutLabel.numberOfLines=2;_calloutLabel=calloutLabel;[selfaddSubview:calloutLabel