我想创建类似于facebook Feed的链接。例如,当您触摸iphone上fb应用程序中人员的姓名时,灰色矩形框表示它已突出显示。我应该使用自定义按钮(普通按钮有边框)吗?什么是最好的方法
答案 0 :(得分:1)
UITextView *infoTextView = [[UITextView alloc] initWithFrame:CGRectMake(10, 54, 300, 211)];
[infoTextView setBackgroundColor:[UIColor whiteColor]];
[infoTextView setFont:[UIFont systemFontOfSize:14.0]];
[infoTextView setText:[dict valueForKey:@"desc"]];
infoTextView.layer.cornerRadius = 5;
infoTextView.layer.borderWidth = 1;
infoTextView.clipsToBounds = YES;
[self addSubview:infoTextView];
[infoTextView release];