【发布时间】:2016-02-04 12:03:55
【问题描述】:
我在 UIMENU Button 中开发了一个即时含义检查器,它工作正常,但是由于我使用了警报方法来显示含义,所以警报的外观不好。谁能告诉我如何获得UIMENU 按钮中定义方法的外观
UIAlertView *av = [[UIAlertView alloc] initWithFrame:CGRectMake(0,0,300,200)];//[[UIAlertView alloc] initWithTitle:newstring message:nil delegate:nil cancelButtonTitle:@"ཕྱིར་འཐེན།" otherButtonTitles:nil];
av.title = newstring;
av.layer.backgroundColor=(__bridge CGColorRef)([UIColor colorWithRed:22/255.0f green:113/225.0f blue:9/255.0f alpha:1.0f]);
av.message = nil;
av.delegate = nil ;
[av addButtonWithTitle:@"ཕྱིར་འཐེན།"];
//[av addButtonWithTitle:@"OK"];
UITextView *v = [[UITextView alloc] initWithFrame:CGRectMake(0,0,300,200)]; //av.bounds];
v.text=newstring1;
[v setEditable:NO];
v.font=[UIFont fontWithName:@"Monlam Uni OuChan2" size:19];
[av setValue:v forKey:@"accessoryView"];
v.backgroundColor = [UIColor yellowColor];
[av show];
【问题讨论】:
-
各位有什么办法可以解决这个问题的......
标签: ios customization uimenuitem