UILabel kann nicht alle Buchstaben anzeigen. Meine app ist wie now my appUILabel kann nicht alle Buchstaben anzeigen
Photocontroller (es für diese Seite) ist
import Foundation
import MobileCoreServices
import UIKit
class PhotoController:UIViewController,UINavigationControllerDelegate,UIImagePickerControllerDelegate{
@IBOutlet weak var label: UILabel!
@IBOutlet weak var myImageView: UIImageView!
private var imagePicker:UIImagePickerController!
override func viewDidLoad() {
super.viewDidLoad()
label.text = "Tap the PhotoSelect or Camera to upload a picture"
//myImageUploadRequest()
}
Also, alles Schreiben von
label.text = "Tap the PhotoSelect or Camera to upload a picture"
ist nicht in meiner Anwendung gezeigt.
Was soll ich tun, um dies zu beheben?
label.numberOfLines = 0; Standardmäßig hat UILabel nur eine Zeile. – Developer
Geben Sie number0fLines = 0 –
siehe https://stackoverflow.com/questions/446405/adjust-uilabel-height-depending-on-the-text –