Image Caching With AFNetworking causes memory warning in UICollectionView

We have use SDWebImage instead of AFNetworking to handle memory warning. You can find swift code from below link. here is below code: [imageView sd_setImageWithURL:[NSURL URLWithString:@”http://www.domain.com/path/to/image.jpg”] placeholderImage:[UIImage imageNamed:@”placeholder.png”]]; // Some time may possible that this cause memory warning than use below code to overcome(This causes …

UIView Extension with support CornerRadius, borderWidth, borderColor, roundCorners, shadowColor, shadowOpacity, shadowOffset, shadowRadius.

While we want to set uiview property (like CornerRadius, borderWidth, borderColor, roundCorners, shadowColor, shadowOpacity, shadowOffset, shadowRadius) at that time we use code or user defined runtime attribute for that but using this extension we can esily update property from attribute inspector. code support SWIFT 3.0 …

GPUImage New Distortion Filter

Touch Moved Method in our View Controller -(void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {     if (TouchEnable)     {         UITouch *touch = [touches anyObject];         CGPoint touchPoint = [touch locationInView:_img_view];                  @autoreleasepool {                          double dx = fabs(BeginPoint.x – touchPoint.x);             …

Jquery – TreeGrid from HTML table.

For that I used below jquery plugin for using that follow below simple steps Step 1. Initialize plugin (Download JS and CSS file from given reference link and add into your project) <script type=”text/javascript” src=”js/jquery.js”></script> <script type=”text/javascript” src=”js/jquery.treegrid.js”></script> <link rel=”stylesheet” href=”css/jquery.treegrid.css”> <script type=”text/javascript”> $(‘.tree’).treegrid(); </script> …