PHP

PHP is a server-side scripting language created in 1995 and designed for web development but also used as a general-purpose programming language

Read More

JAVA

Java is a set of several computer software and specifications developed by Sun Microsystems, later acquired by Oracle Corporation, that provides a system for developing application software and deploying it in a cross-platform computing environment.

Read More

C++

C++ is a middle-level programming language developed by Bjarne Stroustrup starting in 1979 at Bell Labs.

Read More

C

C is a middle-level programming language developed by Dennis Ritchie starting at Bell Labs.

Read More
Latest Blog

image crop according rect in ios.

//—- Image Crop according rect seen and trasform according Orientation              CGRect outputRect = [captureVideoPreviewLayer metadataOutputRectOfInterestForRect:captureVideoPreviewLayer.bounds];              CGImageRef takenCGImage = takenImage.CGImage;              size_t width = […]

read more

convert dictionary null data to blank ios.

for (int i =0; i < [[responseObject valueForKey:@”details”] count]; i++) {                                                   NSMutableDictionary *tempDict = (NSMutableDictionary *)[responseObject […]

read more

Convert miliseconds timestamp to day month year in ios.

NSTimeInterval _interval=unixTimeSt/1000;     NSDate *date = [NSDate dateWithTimeIntervalSince1970:_interval];     //   NSUInteger unitFlags = NSCalendarUnitHour;          NSUInteger unitFlags = NSCalendarUnitMinute;          NSCalendar *calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];     NSDateComponents *components = […]

read more

Multipart form data ios NSURLSession

NSData *postData1 = [NSJSONSerialization dataWithJSONObject:registerCredential options:NSJSONWritingPrettyPrinted error:nil]; NSString *regItem = [[NSString alloc] initWithBytes:[postData1 bytes] length:[postData1 length] encoding:NSUTF8StringEncoding]; dict = @{@”params”:regItem}; // NSData *postData = [NSJSONSerialization dataWithJSONObject:dict options:0 error:&error]; NSMutableURLRequest *request = [[AFHTTPRequestSerializer serializer] multipartFormRequestWithMethod:@”POST” URLString:url.absoluteString parameters:dict constructingBodyWithBlock:^(id formData) { //[formData […]

read more

Get Contact List in iOS

How to import Contact List in iOS app Apple provides framework that allow user to access address book of device. There are following terms which you need to know basics of its. ABRecordRef: It contents data for a person or […]

read more

iOS File Management System

iOS File Management System In iOS to manage files apple provide NSFileManagerClass  which is used to manipulate the files. Using this class we can perform generic file system operations like create file, remove file, move file, copy file etc. In […]

read more

What are best practices for validating email addresses in Swift?

func isValidEmail(testStr:String) -> Bool {         // println(“validate calendar: \(testStr)”)         let emailRegEx = “[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}”                  let emailTest = NSPredicate(format:“SELF MATCHES %@”, emailRegEx)         […]

read more

Display Simple Alert View in Swift.

Using Following Code : let alert = UIAlertController(title: “Alert”, message: “All Fields Are Required”, preferredStyle: UIAlertControllerStyle.Alert)             alert.addAction(UIAlertAction(title: “OK”, style: UIAlertActionStyle.Default, handler: nil))             self.presentViewController(alert, animated: true, completion: nil)

read more

Set background image swift IOS.

By using following code you can change background image of button : btnRemember.setBackgroundImage(UIImage(named:“uncheck”), forState: .Normal)

read more

Close iOS Keyboard by touching return using Swift.

To do this you have to apply first delegate method in your class like this : class ViewController: UIViewController,UITextFieldDelegate { } after that apply should return delegate method  : func textFieldShouldReturn(textField: UITextField) -> Bool{         textField.resignFirstResponder()  //– […]

read more