-1

I am using UIActivityViewController for social sharing in my app, for iPhone UIActivityViewController modal is being used like this:

UIActivityViewController *activityController = [[UIActivityViewController alloc] initWithActivityItems:activityItems applicationActivities:nil];
activityController.modalTransitionStyle = UIModalTransitionStyleCoverVertical;

[self presentViewController:activityController animated:YES completion:nil];

I need to change the size of the modal that opens up, please help.

I tried:

activityController.preferredContentSize = CGSizeMake(activityController.preferredContentSize.width/4, 250);

But this does not work and the size of the modal remains same. I should be able to specify the size of the modal that opens on my app for iPhones.

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Jillian
  • 129
  • 1
  • 9
  • Please take a look at the screenshots, the icons are appearing quite big, they do not appear this way in a few other apps that I checked. I need to tweak the size of the view and icons displayed inside it – Jillian Oct 09 '15 at 05:01
  • My app sscreenhost, here the icon sizes appear quite big: https://s3-us-west-1.amazonaws.com/jjm.so/myscreen1.jpg – Jillian Oct 12 '15 at 05:05
  • Looked at fast company app, the icon sizes appear smaller and this is the icon size and window size am trying to achieve for my share screen: https://s3-us-west-1.amazonaws.com/jjm.so/refscreen.jpg – Jillian Oct 12 '15 at 05:06
  • Any suggestings on how to tweak the share screen and icon sizes will be greatly appreciated. – Jillian Oct 12 '15 at 05:07

2 Answers2

0

I think your app isn't enable the correct scale on your device. (Ex: The iphone 6s plus should get scale value:3) You can check your setting. (ref: iPhone 6 (Plus) screen size)

Community
  • 1
  • 1
kuokuo321
  • 1,603
  • 1
  • 10
  • 11
-1

Perform affine transformation on the activity's indicator view:

yourActivityIndicator.transform = CGAffineTransformMakeScale(2, 2);
[self addSubview:yourActivityIndicator];
Yonatan Vainer
  • 453
  • 5
  • 15