Thursday, July 14, 2011

ASI HTTP Request + JSON Sample

  
ASIHTTPRequest *req = [ASIHTTPRequest requestWithURL:URL];
    req.delegate = self;
    req.userInfo = [NSDictionary dictionaryWithObject:@"initialRequest" forKey:@"type"];
    NSData *body = [jsonString  dataUsingEncoding:NSUTF8StringEncoding];
    [req appendPostData:body];
    [req startSynchronous];

No comments:

Create a list in SwiftUI with sticky section headers

 Sample Code import SwiftUI struct ContentView : View {     @State var isCustomViewControllerDisplayed = false     @State private va...