我試圖在按鈕被點擊時從底部帶入子視圖。但只是第一次按鈕是可點擊的。在動畫按鈕不可點擊後再次點擊。 這是代碼。 class AnimateView: UIView {
var button: UIButton!
var menuView: UIView!
var mainView: UIView!
override init(frame: CGRect) {
super
我這是怎麼保存的圖像 let format = DateFormatter()
format.dateFormat="MMMM-dd-yyyy-ss"
let currentFileName = "\(format.string(from: Date())).img"
print(currentFileName)
// Save Images
l
here is the image of the error on Xcode 當我推說應該停止音頻按鈕,它只是停止整個應用程序和崩潰。隨時給我一些幫助解決這個問題。 代碼的這個地區是該按鈕被迷上了, @IBAction func stop(_ sender: UIButton) {
if audioPlayer1.isPlaying { //error is here on this lin
我試圖加載存儲在公共數據庫中的PDF文件作爲CKAsset,代碼在去年發佈的現有應用程序中運行良好。不過,我現在得到以下錯誤 無法將類型「的NSData」的價值強制 這裏鍵入「數據」是代碼 - if docType == "PDF" || docType == "pdf" {
if let asset1 = record.object(forKey: "documentFile") as