Friday, 31 October 2014

Get all images (full size) from Image gellery in iOS

ViewController.h
#import <UIKit/UIKit.h>
#import <AssetsLibrary/AssetsLibrary.h>

@interface ViewController : UIViewController<UICollectionViewDataSource, UICollectionViewDelegate>
{
    ALAssetsLibrary *library;
    NSArray *imageArray;
    NSMutableArray *mutableArray;

    IBOutlet UICollectionView *collectionView;
}

-(void)allPhotosCollected:(NSArray*)imgArray;
@end
ViewController.m

Thursday, 30 October 2014


75 Essential Tools for iOS Developers

If you were to go to a master woodworker’s shop, you’d invariably find a plethora of tools that he or she uses to accomplish various tasks.
In software it is the same. You can measure a software developer by how they use their tools. Experienced software developers master their tools. It is important to learn your current tools deeply, and be aware of alternatives to fill in gaps where your current ones fall short.
With that in mind, I present to you a gigantic list of tools. Some of these I use daily, others I see potential in. If you have more tools you’d like to see here, just make sure to add a comment.
I tried to categorize these the best I can. Some of the entries are websites, some are back-end services, but most are apps that you install. Not all of the apps are free, so I’ll make a note with a $ to denote that an app costs money.
And without further ado, we’ll start from the beginning of any project, and that

Saturday, 25 October 2014

Java web server demo.

Java HTTP web server demo. Actually a HTTP web server is nothing but a TCP socket connection where first return content must be "HTTP/1.0" with content type and then contents (Html type) or specified. And At last connection must close so the connection stream must break to client. If it is a traditional TCPServer then no need to terminate the connection, we need connection stream. And there is no need of return first content as "HTTP/1.0 ...". For TCPServer code click here.
Keep it simple with this code.

Thursday, 16 October 2014

custom spash screen ios for long time.

- (void)splashAnimation{
    NSInteger timeForSplash = 3;
    UIImageView *imageViewSplash = [[UIImageView alloc] initWithFrame:mainWindow.frame];
    [imageViewSplash setImage:[UIImage imageNamed:@"Default-568h"]];
    [mainWindow addSubview:imageViewSplash];
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, timeForSplash * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
        [imageViewSplash removeFromSuperview];
    });
}

If you want every time then add this method in