Top "Swift-playground" questions

Swift Playgrounds are interactive design environments that evaluate code as you write it.

UITableView get titleForHeadersInSection swift

I want to set the title of the header in the section of UITableView. What is the syntax in swift …

uitableview swift swift-playground ios8.1
How do I run Asynchronous callbacks in Playground

Many Cocoa and CocoaTouch methods have completion callbacks implemented as blocks in Objective-C and Closures in Swift. However, when trying …

asynchronous callback closures swift swift-playground
Convert Character to Int in Swift 2.0

I just want to convert a character into an Int. This should be simple. But I haven't found the previous …

swift int character swift-playground swift2
No such module 'Cocoa' in Swift Playground

I'm trying to follow some of the code used in the WWDC playgrounds session, I'm trying to import the Cocoa …

swift swift-playground
How to create and send the json data to server using swift language

I'm new to IOS development and I have started with the swift language. I'm trying to get the value from …

ios json swift xcode6 swift-playground
Xcode playgrounds can't access swift files in Sources folder

I just upgraded to Xcode 6.3 and they offered something new to the Playgrounds. If you make a new playgrounds and …

swift swift-playground xcode6.3
Declarations in extensions cannot override yet error in Swift 4

I have an extension: public extension UIWindow { override public func topMostController()->UIViewController? { ... } } but for my topMostController I get …

ios swift swift-playground swift4
Xcode: Any way to refresh/re-run the playground?

The Playground in Xcode automatically updates as you type, but I can't figure out how to get the Playground to "…

ios swift refresh xcode6 swift-playground
Swift random number

I'm having problems with this drawRandomCard function. It works just like it should for some time, but eventually it crashes …

random swift swift-playground
How to reopen Console Output in a Swift Playground?

I was happily printlning to the Console Output in the Assistant Editor of a Swift/Xcode 6 Playground (see this SO …

xcode console swift swift-playground