This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (id)initWithCertificatePath:(NSString *)path | |
{ | |
self = [super init]; | |
if (self) { | |
_certData = [NSData dataWithContentsOfFile:path]; | |
} | |
return self; | |
} | |
- (void)validateChallenge:(NSURLAuthenticationChallenge *)challenge { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
workspace 'Everything.xcworkspace' | |
platform :ios, "7.0" | |
xcodeproj './App/My App.xcodeproj' | |
xcodeproj './Framework1/Framework1.xcodeproj' | |
xcodeproj './Framework2/Framework2.xcodeproj' | |
#### Application |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var iExist:String? | |
var s:[String:Any] = [String:Any]() | |
s["thing"] = 2 | |
if let x = s["thing"] { | |
iExist = x | |
} | |
// explicit cast x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
public class Thing: NSObject { | |
public enum State { | |
case yes, no, maybe | |
} | |
public var state:State | |
internal init() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
class foo { | |
var bar:String! | |
func print() { | |
println("some stuff and \(self.bar)") | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Cocoa | |
class Thing:NSObject { | |
func a() { | |
println("a") | |
} | |
} | |
extension Thing { | |
// func a() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
class Thing { | |
func doStuff(stuff:String) { | |
} | |
func doStuffWithAThing(stuff:String, athing:String) { | |
} | |
func doStuffWithTwoThings(stuff:String, thingOne:String, thingTwo:String) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
var strings = ["one", "two", "three", "four"] | |
extension Array { | |
func mapFilter<U>(transform: (T) -> U?) -> [U] { | |
var o = [U]() | |
for e in self { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension NSObject { | |
func typeNameWithOutModuleName() -> String { | |
var typeNameHeirarchy = NSStringFromClass(self.dynamicType).componentsSeparatedByString(".") | |
typeNameHeirarchy.removeFirst() | |
return typeNameHeirarchy.joinWithSeparator(".") | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xcrun llvm-cov report -use-color=true -instr-profile \ | |
./Build/Intermediates/CodeCoverage/Coverage.profdata \ | |
./Build/Intermediates/CodeCoverage/MyApp/Products/Debug-iphonesimulator/MyApp.app/MyApp |
OlderNewer