我想更改shkactionsheet中显示的字词的字体大小。我不知道如何更改字体大小。
这个词看起来像:
+ (SHKActionSheet *)actionSheetForType:(SHKShareType)type
{
SHKActionSheet *as = [[SHKCONFIG(SHKActionSheetSubclass) alloc] initWithTitle:SHKLocalizedString(@"Share ")
delegate:nil
cancelButtonTitle:nil
destructiveButtonTitle:nil
otherButtonTitles:nil];
as.delegate = as;
as.item = [[[SHKItem alloc] init] autorelease];
as.item.shareType = type;
as.sharers = [NSMutableArray arrayWithCapacity:0];
NSArray *favoriteSharers = [SHK favoriteSharersForType:type];
// Add buttons for each favorite sharer
id class;
for(NSString *sharerId in favoriteSharers)
{
class = NSClassFromString(sharerId);
if ([class canShare])
{
[as addButtonWithTitle: [class sharerTitle] ];
[as.sharers addObject:sharerId];
}
}
if([SHKCONFIG(showActionSheetMoreButton) boolValue])
{
// Add More button
[as addButtonWithTitle:SHKLocalizedString(@"More...")];
}
// Add Cancel button
[as addButtonWithTitle:SHKLocalizedString(@"Cancel")];
as.cancelButtonIndex = as.numberOfButtons -1;
return [as autorelease];
}
答案 0 :(得分:0)
SHKActionSheet是UIActionSheet的子类。请查看UIActionSheet的文档。如果我记得很清楚,就不可能改变字体。但是,您可以使用自定义创建自己的UIView并模仿UIActionSheet接口。