Note that there are some explanatory texts on larger screens.

plurals
  1. POerror in ASIFormDataRequest "_OBJC_CLASS_$_ASIFormDataRequest", referenced from:
    primarykey
    data
    text
    <p>I am struggling in ASIFormDataRequest.</p> <p>I want to upload a photo on facebook in iphone so that I used a ASIFormDataRequest in my programming but it give me error like <code>_OBJC_CLASS_$_ASIFormDataRequest</code>, referenced from:</p> <p>I don't understand its meaning and how can I handle it</p> <p>My code for uploading photo is as follows:</p> <pre><code>-(void)postphoto:(id)sender { UISegmentedControl* _segControl; //ASIFormDataRequest *request; UIImageView *_imageView = [UIImageView alloc];// initWithImage: image]; NSString *likeString; NSString *filePath = nil; if (_imageView.image == [UIImage imageNamed:@"angelina.jpg"]) { filePath = [[NSBundle mainBundle] pathForResource:@"angelina" ofType:@"jpg"]; likeString = @"babe"; } else if (_imageView.image == [UIImage imageNamed:@"depp.jpg"]) { filePath = [[NSBundle mainBundle] pathForResource:@"depp" ofType:@"jpg"]; likeString = @"dude"; } else if (_imageView.image == [UIImage imageNamed:@"maltese.jpg"]) { filePath = [[NSBundle mainBundle] pathForResource:@"maltese" ofType:@"jpg"]; likeString = @"puppy"; } if (filePath == nil) return; NSString *adjectiveString; if (_segControl.selectedSegmentIndex == 0) { adjectiveString = @"cute"; } else { adjectiveString = @"ugly"; } NSString *message = [NSString stringWithFormat:@"I think this is a %@ %@!", adjectiveString, likeString]; NSURL *url = [NSURL URLWithString:@"https://graph.facebook.com/me/photos"]; //[ self setRequest:[ASIFormDataRequest requestWithURL:url]]; request = [ASIFormDataRequest requestWithURL:url]; [request addFile:filePath forKey:@"file"]; [request setPostValue:message forKey:@"message"]; //[request setPostValue:_accessToken forKey:@"access_token"]; [request setDidFinishSelector:@selector(sendToPhotosFinished:)]; [request setDelegate:self]; [request startAsynchronous]; } </code></pre> <p>I also added two files <code>ASIHTTPRequest.h</code> and <code>ASIFormDataRequest.h</code> and imported it where I written my code</p> <p>I have also added frameworks like <code>CFNetwork</code>,<code>Foundation</code>,etc </p> <p>Please help me in solving this error. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload