Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. #import <UIKit/UIKit.h>
  2. #import "ILAuthClient.h"
  3. #import "ILAuthLoginViewController.h"
  4.  
  5. @interface ILViewController : UIViewController
  6.  
  7. @property (strong, nonatomic) NSString *string;
  8. @property (strong, nonatomic) NSURL *request;
  9. @end
  10.  
  11. -(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{
  12. if ([segue.identifier isEqualToString:@"authLogin"]){
  13. NSURL *url = [self authenticateWithInstagram];
  14. ILAuthLoginViewController *authModal = [[ILAuthLoginViewController alloc]init];
  15. authModal.delegate = self;
  16. authModal.url = url;}
  17.  
  18. #import <UIKit/UIKit.h>
  19.  
  20. @interface ILAuthLoginViewController : UIViewController <UIWebViewDelegate>
  21.  
  22. @property (strong, nonatomic) IBOutlet UIWebView *webView;
  23. @property (strong, nonatomic) NSURLRequest *request;
  24. @property (strong, nonatomic) NSURL *url;
  25. @property (strong, nonatomic) NSString *string;
  26.  
  27. @end
  28.  
  29. - (void)viewDidLoad
  30. {
  31. [super viewDidLoad];
  32. // Do any additional setup after loading the view.
  33. self.webView.delegate = self;
  34. self.request = [[NSURLRequest alloc]initWithURL:self.url];
  35.  
  36. [self.webView loadRequest:self.request];
  37. NSLog(@"Request %@", self.request);
  38.  
  39. }
  40.  
  41. -(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{
  42. if ([segue.identifier isEqualToString:@"authLogin"]){
  43. NSURL *url = [self authenticateWithInstagram];
  44. ILAuthLoginViewController *authModal = (ILAuthLoginViewController *)segue.destinationViewController;
  45. authModal.delegate = self;
  46. authModal.url = url;
  47. }
  48. }
  49.  
  50. ILAuthLoginViewController *authModal = [[ILAuthLoginViewController alloc]init];
  51.  
  52. ILAuthLoginViewController * authModal = (ILAuthLoginViewController *) segue.destinationViewController;
  53.  
  54. -(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{
  55. if ([segue.identifier isEqualToString:@"authLogin"]){
  56. NSURL *url = [self authenticateWithInstagram];
  57. ILAuthLoginViewController *authModal = (ILAuthLoginViewController *)segue.destinationViewController;
  58. authModal.delegate = self;
  59. authModal.url = url;
  60. }
  61. }
  62.  
  63. NSURL *url = [NSURL URLWithString:[@"YOURURL" stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement