swift

Swift Lane Stack implementation

Today in practice design patterns when there is no sudden discovery Swift stack - Stack class is。Since I was shining Java version of the design patterns to learn,So I had no choice but to implement a look at the。

But speaking,In Apple's official manual, "generic" chapter really have a stack of chestnuts,It is the structure implemented。This is actually in line with the Swift's style - after all,, S[……]

Click link to continue reading...

How to learn programming language Swift?

In retrospect,I am now off and on since May begin to learn language Swift are nearly six months,From the program have no feeling at all,To the present"Open practice",Experienced a lot of。Might say for a master who worked for many years,These are too shallow,The phrase "you needProject experience"You can kill me blood slot-1,But for most, like me, "small white",I think I walked half way can be complex[……]

Click link to continue reading...

For my own use Swift 2 Wrote a rudimentary Karel Robot

Update it!

This update adds a branch,Goal is to create the "Next" function,In addition to repair the ugly side of the white block interface!

Currently no more modifications,run.swift file more refreshing,No more double thread it!

With an array of state of static storage Karel,Thanks for the banana king!

Adjust the speed of the great dream is within reach!?[……]

Click link to continue reading...

String NSString and what difference?

Swift programming language learning time may not experience this thing,But with the depth of learning,As you read other people's code when,You will probably encounter this type NS,This time you will certainly be curious,similar String and NSString In the end where the difference? They seem to be exactly the same way! and,As by keyword,We can also easily make data transfer between both of them[……]

Click link to continue reading...