NSData *data=[NSData dataWithContentsOfURL:[NSURL URLWithString:URL]];
UIImage *img=[UIImage imageWithData:data];
UIImageView* imageView = [[UIImageView alloc] initWithImage:img];
[self.view addSubview:imageView];
URL may be http//...../image.jpg
Sample Code import SwiftUI struct ContentView : View { @State var isCustomViewControllerDisplayed = false @State private va...
No comments:
Post a Comment