Giter Club home page Giter Club logo

iphone1's Introduction

iphone1's People

Contributors

roberthsu2003 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

iphone1's Issues

swift連線mysql

老師我想要用swift連線到mysql有哪先步驟。
要學的東西有哪些?

CodeSign failed with a nonzero exit code問題分享

Xcode>上方工具選單product>Clean Build Folder
解決

剛剛想起我之前也有發生過
因為我Object-C與swift混用
導致不知道是不是xcode的bug
反正Clean Build Folder清除專案重新編譯就好了

但剛剛的狀況我直接開一個新專案
為什麼還會碰到這問題就不知道了

我是週日班的學生

老師
我是許龍軒
我還沒看到上週日上的project7壓縮檔
我照上課步驟做了但還是出現一樣跑版的問題
想看看我的設定有哪裡沒注意到
謝謝

我的 View Controller 前一天執行沒問題,重新開啟檔案後執行就不能變成綠色了

老師請問一下我的 View Controller 程式碼如下, 前一天執行沒問題,重新開啟檔案後執行就不能變成綠色了,如圖檔

class ViewController: UIViewController {
@IBOutlet var messageLabel:UILabel!
@IBOutlet var newButton:UIButton!
override func viewDidLoad() {
super.viewDidLoad()
view.backgroundColor = UIColor.systemGreen
messageLabel.text = "Hello, iPhone"
newButton.setTitle("press me", for: .normal)

lesson1_1.zip

截圖 2021-05-04 上午12 13 30

Optional binding的一些疑問

老師好
我是第一堂課的龍軒
今天才回來看12/12下午第二堂課的回播
看到老師在這堂課教的Optional binding
其中一直有提到java或其他語言都沒有這個常數為nil的判斷防呆
這個概念是SWIFT才有的

我想問一下
我之前是寫C#的
他們有個Int.TryParse(字串, out 變數)
若字串成功判斷可以轉為int
則將變數指定為轉成int的數值
若無法轉成int的字串
則執行else的程式區段

那C#的這個指令跟Swift的Optional binding是否為一樣的指令呢
還是說執行中有些底層的邏輯不同之類的

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.