[Solved] Fetch Image from URL


just i did getting image and display in navigation bar. Its working code.

    NSURL *urlNav = [NSURL URLWithString:@"https://www.google.co.in/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png"];
    NSData *urlData = [NSData dataWithContentsOfURL:urlNav];
    UIImage *imageNav = [UIImage imageWithData:urlData];

    UINavigationController *navController=[[UINavigationController alloc]initWithRootViewController:NextView];
    //navController.navigationBarHidden=YES;

    [self.navigationController.navigationBar setBackgroundImage:imageNav forBarMetrics:UIBarMetricsDefault];

0

solved Fetch Image from URL