Objective c 更改SHKAActionSheet中单词的大小
我想更改ShkaActionSheet中显示的单词的字体大小。我不知道如何更改字体大小 这个词看起来像:Objective c 更改SHKAActionSheet中单词的大小,objective-c,ios,xcode,facebook,sharekit,Objective C,Ios,Xcode,Facebook,Sharekit,我想更改ShkaActionSheet中显示的单词的字体大小。我不知道如何更改字体大小 这个词看起来像: + (SHKActionSheet *)actionSheetForType:(SHKShareType)type { SHKActionSheet *as = [[SHKCONFIG(SHKActionSheetSubclass) alloc] initWithTitle:SHKLocalizedString(@"Share ")
+ (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];
}
SHKAActionSheet是UIActionSheet的一个子类。因此,检查UIActionSheet的文档。如果我记得很清楚,就不可能改变字体。但是,您可以创建自己的UIView,并通过自定义设置模拟UIActionSheet界面。您似乎无法更改共享文本的字体大小。从刚才开始我一直在努力。。你能改变尺寸吗?