What do you want to save?
Add Code snippet
New code examples in category Swift
-
Jontia 2021-09-20 18:35:02
how to have diffrent size images in a stack view swift
let imageViewWidthConstraint = NSLayoutConstraint(item: smallRealeaseImageIcon, attribute: .width, relatedBy: .equal, toItem: nil, attribute: .notAnAttribute, multiplier: 1, constant: 20) let imageViewHeightConstraint = NSLayoutConstraint(item: smallReale... Add solution -
IKnowWhatWordYouNeed 2021-09-20 18:09:04
swift programmatically set font
// Create a new Folder(group) "Fonts" // Drag your fonts files in it with Create Groups and your prj as Ref // Add property “Fonts provided by application.” into Info.plist // Copy and paste the names of the fonts with extension // N... Add solution -
-
George White 2021-09-20 08:50:02
uipageviewcontroller stop scrolling
The documented way to prevent the UIPageViewController from scrolling is to not assign the dataSource property. If you assign the data source it will move into 'gesture-based' navigation mode which is what you're trying to prevent. Add solution -
NICS 2021-09-19 11:20:01
uilabel.text from array string
import UIKit class ViewController: UIViewController { var arrays = ["A", "b", "C", "D", "E", "F"] var currentIndex = 0 @IBOutlet weak var ChangeText: UILabel! override func viewDidLoad() { ... Add solution -
TRA 2021-09-19 01:57:05
swift uilabel font bold
// Define attributes let labelFont = UIFont(name: "HelveticaNeue-Bold", size: 18) let attributes :Dictionary = [NSFontAttributeName : labelFont] // Create attributed string var attrString = NSAttributedString(string: "Foo", attributes... Add solution
Best helpers
Hanno Fietz
+5
BurtNettle
+5
Luc Dagenais
+5
ZypA13510
+5
Reinout
+5
Vladislav
+5
Chocolate
+5
Pooja
+5
Chumakoff
+5
Njd
+5
Teraschi
+5
Recluze
+5
Cali
+5