在Snapchat的登录页面上,按钮出现在键盘的顶部,我可以这样做,但由于6plus有不同大小的键盘,它会将其中一些关闭。
我在垂直堆栈视图中有两个文本字段和两个按钮,我希望垂直堆栈视图的底部位于键盘顶部。
+ 此外,在主题上如何在垂直堆栈视图内的内容上添加填充。它不会让我添加约束。如下图所示,我希望TF有一个远离屏幕的空间,按钮保持全宽。
216是键盘从iPhone 6向下的高度,但是在我后面发现的6加号是226。
答案 0 :(得分:-1)
您可以尝试这样的操作,并在触发事件时为视图设置动画。
SELECT a1.*
, t2.`name` AS project_name
, t2.`id` AS project_id
, u2.`fname` AS fname
, u2.`lname` AS lname
, u2.`color` AS color
, u2.`id` AS user_id
, u3.`fname` AS creatorfname
, u3.`lname` AS creatorlname
FROM `activities` AS a1
LEFT JOIN `projects` AS t2 ON a1.`projectid`=t2.`id`
LEFT JOIN `users` AS u2 ON a1.`userid`=u2.`id`
LEFT JOIN `users` AS u3 ON a1.`creatorid`=u3.`id`
LEFT JOIN `organisations` AS o1 ON u2.`orgid`=o1.`id`
WHERE
o1.`id`=:orgid AND a1.`active`=1 AND
( a1.`postarea` LIKE '%newyork%'
OR a1.`streetname` LIKE '%newyork%'
OR a1.`companyname` LIKE '%newyork%'
OR a1.`postarea` LIKE '%newyork%'
OR a1.`orgnumber` LIKE '%newyork%'
OR a1.`postcode` LIKE '%newyork%'
OR a1.`homepage` LIKE '%newyork%'
OR a1.`phone1` LIKE '%newyork%'
OR a1.`phone2` LIKE '%newyork%'
OR a1.`phoneswitch` LIKE '%newyork%'
OR a1.`status` LIKE '%newyork%'
OR a1.`turnovermin` LIKE '%newyork%'
OR a1.`turnovermax` LIKE '%newyork%'
OR a1.`description` LIKE '%newyork%'
OR a1.`comment` LIKE '%newyork%'
OR a1.`email` LIKE '%newyork%'
)
AND a1.`projectid`=:projectid
AND a1.`userid`=:userid AND a1.`date`>=:datefrom AND
a1.`date`<=:dateto ORDER BY a1.`date` DESC