ich ein Beispiel aus Plural bin der Umsetzung, wo ich eine scrollview
und ein paar buttons
haben horizontal zentriert. Ich habe führende und nachlaufende Einschränkungen von 50
für jeden button
. Wenn ich den Trailing auf 51
ändere, scrollt ich auch horizontal. Warum passiert dies? Keine button
Breite zwingt die Schaltfläche aus dem Bildschirm des width.I denke, es ist etwas mit, wie autolayout
Werke zu tun hat. iOS Automatische Anordnung Scroll scrollt horizontal
0
A
Antwort
-1
Warum können Sie nicht versuchen UIStackView statt Autolayouts. Jede Unteransicht automatisch zu formatieren, ist etwas komplex. stackview passt die Ansicht dem Gerät an. Weitere Informationen finden Sie unter UIStackView documentation
+0
Dies ist besser als Kommentar als eine Antwort ... – Yitzchak
Verwandte Themen
- 1. Automatische Anordnung Einschränkungen Etiketten setzen horizontal
- 2. Sonderbare Automatische Anordnung Ausgabe iOS
- 3. iOS Automatische Anordnung gleiche Breite Einschränkung
- 4. WPF ScrollViewer Horizontal mit Itemcontrol scrollt nicht/fügt Scroll hinzu
- 5. iOS Automatische Anordnung: Zeigen auf eine Schaltfläche genau in der Mitte der beiden anderen Tasten horizontal
- 6. Horizontal scrollbares div, das vertikal scrollbares div enthält, scrollt horizontal nicht auf iOS
- 7. Automatische Anordnung Einschränkungen nicht
- 8. AVCaptureSession mit Automatische Anordnung
- 9. UITextView - addSubview - Automatische Anordnung
- 10. Android Grid View Scroll horizontal
- 11. AVPlayerController: Vollbild Automatische Anordnung gibt
- 12. Verschachtelte UICollectionViews Scroll-Problem (iOS)
- 13. Jquery automatische Scroll Showroom
- 14. iOS - So scrollt man horizontal im Sprite-Kit
- 15. Automatische Anordnung Problem für die Breite gleichmäßig in iOS iPhone
- 16. Uiscrollview scrollt horizontal und vertikal
- 17. Automatische Anordnung und Seitenverhältnis Taste
- 18. Wie scrollt man horizontal in Jquery Mobile?
- 19. Android Edittext Scroll horizontal
- 20. Floating Horizontal Scroll bar
- 21. Horizontal Scroll dataTables.js
- 22. GridView Horizontal Scroll (UWP)
- 23. ios swift - Scroll-Ansicht über Bild scrollt nicht
- 24. PageViewController scroll bug (über scrollt)
- 25. ListView FullScreen-Item Scroll Horizontal
- 26. Scroll horizontal in C# Selen
- 27. Horizontal scroll Schnappen reagieren nativer
- 28. wie Horizontal Scroll-able CardView
- 29. Jquery Horizontal Scroll bei Klick
- 30. Chrom Nummer Feld horizontal scroll
entfernen Sie die Tastenbreite, wenn Sie – karthikeyan
hinzugefügt Keine Breite angegeben –
beste Option mit Autolayout & Scrollview zu arbeiten ist, dass Sie eine UIView auf Ihrem Scrollview hinzufügen und jetzt Ihre Schaltflächen auf UIView hinzugefügt. Das Leben leichter machen –