5

Picker selection constraints iphone4 / iphone5

 3 years ago
source link: https://www.codesd.com/item/picker-selection-constraints-iphone4-iphone5.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Picker selection constraints iphone4 / iphone5

advertisements

I have a picker view on ios7. This picker view as at the bottom of the view controller. On the iPhone 5 it displays fine, and its big enough to see the options in the picker view.

On the iPhone 4 it is too small to see the options in the picker view.

I know I have to use constraints, but any idea which way to go with this one.

The picker view is stuck to the bottom of the vc.

thanks


In storyboard, simply ctrl-click-drag to the view you want to make the constraint with like this:

bVL52.png

and then you can see all your constraints on the right side of Xcode:

Jd1Yl.png

Related Articles

Breaking constraints for iPhone 6+ with dynamic size cells

I have a UITableViewCell setup like below: An image with the date, a divider line (UIView) and a text field. Constraints are set like so: Image: pin top top, trailing and leading edges, aspect ratio enabled. Date: pin to top (image), leading, fixed h

Selection of triangles in the OpenGL core profile when using glDrawElements

I am drawing a mesh of triangles using glDrawElements and would like to be able to pick/select a triangle using the mouse click. The mesh of triangles can be very big. In fixed-function OpenGL there is the possibility of using GL_SELECT: http://conte

Setting UITableViewCell from a selection selection

So far I have made a UITableView in a HabitViewControlle with a button to add a new cell. When the cell is tapped, a detialViewController is revealed. In this View their is a textField, that when tapped a UIPicker is launched. I want to set the title

Highcharts: Why reprocessing changes the radius of the selected point?

I have a similar, but different problem to Highcharts: set 'select' state on a point and maintain it after mouseover? This relates to what happens to the rendering of the point after a redraw event, not a mouseover event. I have set a particular poin

Find and select Outlook e-mail from MS Access

I need to build a tool that will allow the user to select an email from his Outlook so I can then save that email as a .msg file or alternately save just the attachment as a file. I'm stumbling a little bit over what might be the easiest and the best

Dynamically selecting a line in a UIPickerView

I have an iPhone app that use UIPickerView and 3 buttons. This picker has one component with 100 rows (0, 1, 2, ..., 98, 99). I'd like to implement the code so that, when I press on the buttons button1: will make the picker select row 21th (which has

Get a URL from (to) a & ldquo; picked up & rdquo; image, iOS

With this code below, I can extract metadata from an image (pre-added to my project), and render the info as text. This is exactly what I want to do. The SYMetadata is created by pointing to an image via URL. initWithAbsolutePathURL. I want to do the

Neo4j + PopotoJS: graphic filter based on predefined constraints

I have a question about the query based on the predefined constraints in PopotoJs. In this example, the graph can be filtered based on the constraints defined in the search boxes. The sample file in this example visualizations folder, constraint is o

Jquery change HTML to div on the button click on the function: selected

Ok, I have this form written in JavaScript and I want to change it to Jquery. So far I have managed to call text on click using the 'change()' method. then, I have also been able to set the inner div of an element using the set element function. I fo

Delete all tables, stored procedures, triggers, constraints, and all dependencies in a sql statement

Is there any way in which I can clean a database in SQl Server 2005 by dropping all the tables and deleting stored procedures, triggers, constraints and all the dependencies in one SQL statement? REASON FOR REQUEST: I want to have a DB script for cle

How to center two labels horizontally?

I have pretty straightforward requirements where two labels must be centered horizontally. So, I have selected them and chose Editor->align->center horizontally. Then added top space to container constraint to both of them. I also need the labels to

How to add these three files correctly? & Ldquo; Default.png, [email protected], [email protected] & rdquo; for a universal application for iPhone / iPad?

I added "Default.png, [email protected], [email protected]" these three files in my universal project for splash image, I have three diffrent image and the resolution exactly the same as mention in apple docs, for iPad 768 * 1024 , for iphone-4s

Downloading an application of different versions to the Apple App Store

I have made several xcode versions for different sizes on the iphone (iphone4,iphone5, iphone6, iphone 6+, all which have different storyboards, due to the different sizes. Due to the complexity of my app I wasnt able to do constraints. Is there any

How to best manage a situation in PHP where the constructor receives a non-zero mandatory value, which may not always be initialized?

I have some code like so: class Repository { private $number; function __construct(int $number) { $this->number = $number; } //example where $number is required function readQuote() { return $this->db->runSql("select * from quote where id =

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK