2012-05-11 26 views
0

私は、iPhoneアプリ内での暗号化について混乱しています...これは私のアプリの一部であり、暗号化が含まれていないことを確認したかったのです。誰かがこれで私を助けることができますか?これには暗号化が含まれていますか?

- (void)embedYouTube:(NSString *)urlString frame:(CGRect)frame { 
    NSString *embedHTML = @"\ 
    <html><head>\ 
    <style type=\"text/css\">\ 
    body {\ 
    background-color: transparent;\ 
    color: white;\ 
    }\ 
    </style>\ 
    </head><body style=\"margin:0\">\ 
    <embed id=\"yt\" src=\"%@\" type=\"application/x-shockwave-flash\" \ 
    width=\"%0.0f\" height=\"%0.0f\"></embed>\ 
    </body></html>"; 
    NSString *html = [NSString stringWithFormat:embedHTML, urlString, frame.size.width, frame.size.height]; 
    UIWebView *videoView = [[UIWebView alloc] initWithFrame:frame]; 
    [videoView loadHTMLString:html baseURL:nil]; 
    [self.view addSubview:videoView]; 
} 

#pragma mark - Twitter Interactions 
-(void)getTweet 
{ 
    // Specify the URL and parameters 
    NSURL *url = [NSURL URLWithString:@"http://api.twitter.com/1/statuses/user_timeline.json?screen_name=youdabrogames&include_rts=1"]; 
    NSDictionary *parameters = [NSDictionary dictionaryWithObjectsAndKeys:@"1", @"count", nil]; 
    // Create the TweetRequest object 
    TWRequest *tweetRequest = [[TWRequest alloc] initWithURL:url parameters:parameters requestMethod:TWRequestMethodGET]; 
    [tweetRequest performRequestWithHandler:^(NSData *responseData, NSHTTPURLResponse *urlResponse, NSError *error) { 
     // Request completed and we have data 
     // Output it! 
     NSError *jsonError = nil; 
     id timelineData = [NSJSONSerialization JSONObjectWithData:responseData options:NSJSONReadingMutableContainers error:&jsonError]; 
     if(timelineData == NULL) { 
      // There was an error changing the data to a Foundation Object, 
      // so we'll output a bunch of debug information. 
      NSString *myString = [[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding]; 
      NSLog(@"\n\nConversion to object failed."); 
      NSLog(@"HTTP Response code: %d", [urlResponse statusCode]); 
      NSLog(@"Output from server: %@", myString); 
      NSLog(@"JSON Error: %@\n\n", [jsonError localizedDescription]); 
      abort(); 
      // TODO: Show a graceful error message here 
     } 
     NSDictionary *timelineDict = (NSDictionary*) timelineData; 
     NSLog(@"\n\nConversion succeeded!"); 
     NSLog(@"%@\n\n", timelineDict); 
     tweetLabel.text = @""; 
     tweetLabel.text = [[(NSArray*)timelineDict objectAtIndex:0] objectForKey:@"text"]; 
    }]; 
} 
+0

@rckoenes:7秒でどのように編集できますか?ギルドラインを教えてください:) – Nit

+0

あなたの投稿コードには暗号化が見えません。 – CarlJ

+0

@Nit 53秒、7秒は同じものではありません。 – CodesInChaos

答えて

1

JSONを参照してください。このレベルでは暗号化が表示されません。

関連する問題