Search results for

xcode github

91,946 results found

Post

Replies

Boosts

Views

Activity

Reply to Any news on reflection in Swift 2.0?
They showed simple enum type names printing properly during the What's New In Swift session that can be streamed from WWDC.In Swift 2 / Xcode 7 beta, it seems that enums imported from ObjC still have issues, and only simple Swift enum types are printable.let strX = this is (NSRoundingMode.RoundPlain) // this is C.NSRoundingMode enum TestBasicEnum { case Option1 case Option2 } let strY = this is (TestBasicEnum.Option1) // this is TestEnum.Option1 enum TestRawEnum: String { case Option1 = text1 case Option2 = text2 } let strW = this is (TestRawEnum.Option1) // this is TestEnum.Option1 enum TestRichEnum { case Option1 (String) case Option2 (String) } let opt = TestRichEnum.Option1(text) let strZ = this is (opt) // this is TestRichEnum
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
POST bad params with NSURLSession
Hi,I try to use NSURLSession with HTTPAdditionalHeaderMy code setting headers in requestlet URL = NSURL(string: (hostName)(uri))! let request = NSMutableURLRequest(URL: URL) request.HTTPMethod = method request.HTTPBody = NSJSONSerialization.dataWithJSONObject(params, options: nil, error: nil) request.setValue(application/vnd.myapp.v2, forHTTPHeaderField: Accept) request.setValue(application/json, forHTTPHeaderField: Content-Type) request.setValue(gzip, forHTTPHeaderField: Content-Encoding)And with POST request it's produce this on my server :Parameters: {email=>me@email.com, password=>[FILTERED], subdomain=>api, session=>{email=>me@email.com, password=>[FILTERED]}}With NSURLSession, setting headers with HTTPAdditionalHeaders of NSURLSessionConfigurationvar headers = [ Accept: application/vnd.myapp.v2, Content-Type: application/json, Content-Encoding: gzip, ] let request = NSMutableURLRequest(URL: NSURL(string: (hostName)(uri))!) request.HTTPMethod = method request.HTTPBody = NSJSONS
Topic: UI Frameworks SubTopic: AppKit Tags:
1
0
2.5k
Jun ’15
Answer to Java SE 6 problem for El Capitan
Hello! I have searched around the web for finding a solution to the Java SE 6 Runtime that cannot be installed and doesn't allow apps to work as suppose. So while searching the web I found different articles about uninstalling it and deleting the newer version...ect. Nothing worked so I thought what if you go the opposite way instead of deleting it you make your apps think that your Java SE 8u45 is your Java SE 6. Well this article finally helped me http://stackoverflow.com/questions/19563766/eclipse-kepler-for-os-x-mavericks-request-java-se-6/19594116#19594116You will have to change the code and add your version of Java and dont forget to log out and back on!!!HOPE THIS HELPS!!!
1
0
491
Jun ’15
Xcode 7 - new feature UITesting - no recording button !
I'm trying to get the User Interface Testing working with my appplication.I created a UI Test Case Class, reproduced the code shown in What's new in Xcode presentation.And somehow, I cannot find the recording button, in order to record the different actions I want to test and approve.Can you please let me know how to get this to work, I'm bashing my head over this for few hours.Thanks
6
0
6.3k
Jun ’15
UIKeyboardTypeDecimalpad
When use UIKeybaordTypeDecimalPad in iOS8 or above will get minor problem for the keybord, the point position is not in the central of the key. Detailed question description please refer http://stackoverflow.com/questions/26965001/xcode-6-1-ios-8-keyboard-decimal-pad-is-not-properly
Topic: UI Frameworks SubTopic: UIKit Tags:
0
0
663
Jun ’15