Development is a very interesting thing, occasionally in the program to add some small things, will give your app a lot of spice. For example, when some of your features are not ready to go online, you can first put a display GIF dynamic graph UIWebView up, you can tell the user app will have some features, but also make your app cute, impress a big wave sister.
#import "ViewController.h"
@interface Viewcontroller ()
@property (Weak, nonatomic) Iboutlet UIWebView *mywalletwebview;
@end
@implementation Viewcontroller
-(void) Viewdidload {
[Super Viewdidload];
[Self initwithpictureanimation];
}
-(void) initwithpictureanimation{
Self.myWalletWebView.backgroundColor = [Uicolor Lightgraycolor];
NSData *gif = [NSData datawithcontentsoffile:[[nsbundle mainbundle] pathforresource:@ "MyWallet" ofType:@ "gif"];
self.myWalletWebView.userInteractionEnabled = NO;
[Self.mywalletwebview loaddata:gif mimetype:@ "Image/gif" Textencodingname:nil Baseurl:nil];
NSLog (@ "hehe");
}
@end
Adding GIF animated images to UIWebView in iOS development