Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a fast way (keyboard shortcut, etc...) to auto adjust button size to match image size using storyboards?

Tags:

ios

When I add an image to a button, I often have to look back at the image to get the widht and height, then back to interface builder and set the button width and height to match the image.

Is there a key shortcut or something that will set the width and height of the button automatically to match that of the image?

This question is regarding storyboards in xcode specifically.

Im aware that it can be done in code, not asking about that...

like image 404
William Falcon Avatar asked May 03 '13 12:05

William Falcon


People also ask

How do I increase the size of text in a picture?

Now, on with the tip! You probably know that text increases in size if you select it and press Command+Shift+> (Mac) or Ctrl+Shift+> (Windows). But you may not know that if you press Command+Option+>/ Ctrl+Alt+> both the text (or image) and the frame increase in size by 5%.

How to resize multiple images at the same time?

1 Follow the above steps to resize the first image.Click another image and press [F4]. It will be modified to the same size as the previous one. 2 Select the rest of them in turn, and you can batch resize all images quickly. 3 [F4] could redo your last action, which replace the function of format painter, copy & paste.

How to batch resize images in Photoshop?

Follow the above steps to resize the first image.Click another image and press [F4]. It will be modified to the same size as the previous one. 2. Select the rest of them in turn, and you can batch resize all images quickly. 3. [F4] could redo your last action, which replace the function of format painter, copy & paste.

How to move mouse pointer to particular monitor using AutoHotkey?

This article presents a script written in AutoHotkey that defines hotkeys — such as Alt+Ctrl+1, Alt+Ctrl+2, etc. — to move the mouse easily and quickly to any monitor. Code for using Windows AutoHotkey to immediately move mouse pointer to particular monitor ...several users who have 8 or more monitors connected to their Windows 10 computers


1 Answers

In Interface Builder use menu Editor/Size To Fit Content. Shortcut Cmd+=.

You need the button selected. If that option is greyed out, deselect, and reselect the button again.

like image 123
Steve Waddicor Avatar answered Oct 06 '22 00:10

Steve Waddicor