I'm working on a project in Xcode6 beta 4 in Swift. But I got a lot of problems on this project which is working fine in Xcode6 beta 3:
Swift is unavailable on iOS earlier than 7.0;
I remembered Swift should work for iOS 6.0 and above. Why suddenly change to iOS 7.0?
Class 'ViewController' has no initialisers
'IBOutlet' property has non-optional type 'UILabel'
So that I have to change my code to:
@IBOutlet weak var label: UILabel!
Will it be changed in next version again?
Another issue is:
'CGColorSpaceModel' does not have a member named 'value'
My code is:
var colorSpaceModel : CGColorSpaceModel
{
return CGColorSpaceGetModel(CGColorGetColorSpace(self.CGColor))
}
if self.colorSpaceModel.value == kCGColorSpaceModelRGB.value || self.colorSpaceModel.value == kCGColorSpaceModelMonochrome.value {
I don't know what I should do now.