UILabel *nameLabel1 = [[UILabel alloc] initWithFrame:CGRectMake(90, 80, 180, 150)];
nameLabel1.text = @"丁丁丁丁丁丁丁丁丁丁丁丁丁丁丁丁丁丁丁丁丁丁丁丁丁丁丁丁wwwwwwwwwwwwwwww丁";
nameLabel1.font = [UIFont systemFontOfSize: 15];
[nameLabel1 setNumberOfLines:0];
nameLabel1.backgroundColor = [UIColor clearColor];
nameLabel1.textColor = [UIColor blackColor];
[self.view addSubview:nameLabel1];
运行结果如下图
如何让在有英文的地方不换行?求高人指教
nameLabel1.text = @"丁丁丁丁丁丁丁丁丁丁丁丁丁丁丁丁丁丁丁丁丁丁丁丁丁丁丁丁wwwwwwwwwwwwwwww丁";
nameLabel1.font = [UIFont systemFontOfSize: 15];
[nameLabel1 setNumberOfLines:0];
nameLabel1.backgroundColor = [UIColor clearColor];
nameLabel1.textColor = [UIColor blackColor];
[self.view addSubview:nameLabel1];
运行结果如下图
如何让在有英文的地方不换行?求高人指教