Send an Email from App with Android Intent       Intent emailIntent = new Intent(Intent.ACTION_SEND);     // The intent does not have a URI, so declare the “text/plain” MIME type emailIntent.setType(“text/html”); emailIntent.putExtra(Intent.EXTRA_EMAIL, new String[] {“”}); // recipients emailIntent.putExtra(Intent.EXTRA_SUBJECT, “Email subject”); emailIntent.putExtra(Intent.EXTRA_TEXT, “Email message text…”); emailIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(“content://path/to/email/attachment”));     // You can also attach […]

Send an Email from App with Android Intent

The most universal solution is to change SWIFT_OBJC_INTERFACE_HEADER_NAME (“Objective-C Generated Interface Header Name”) under Project’s, not Targets, Build Settings, to: $(PROJECT_NAME)-Swift.h — one per project; $(SWIFT_MODULE_NAME)-Swift.h — one per module (default value). Then import the Project Header, example: #import MyProjectName-Swift.h

How to use Swift classes all across an Objective-C project

Taken from idev101 more in: iPhone Development 101: User Interface: Sizes of iPhone UI Elements How to detect the current device size and kind Element iPhone 4S (and earlier) iPhone 5 iPhone 6 & 7 iPhone 6 Plus & 7 Plus Window (including status bar area) 320 x 480 pts 320 x 568 pts 375 x […]

Sizes of iPhone UI Elements

The following code describes a simple example using POST method.(How one can pass data by POST method) You can use the following code snippet, as described in this article: Here, I describe how one can use of POST method. 1. Set post string with actual username and password. NSString *post = [NSString stringWithFormat:@"Username=%@&Password=%@",@"username",@"password"]; 2. Encode […]

Sending an HTTP POST request on iOS

A singleton is a special kind of class where only one instance of the class exists for the current process. (In the case of an iOS app, the one instance is shared across the entire app.) Some examples in UIKit are [UIApplication sharedApplication] (which returns the sole instance of the application itself), and [NSFileManager defaultManager] (which […]

iOS Singletons – Objective-C

If you want to add a subview with animation, try this simple snippet: PS: Replace myView with the name of the view you want to replace. CATransition *applicationLoadViewIn =[CATransition animation]; [applicationLoadViewIn setDuration:duration]; [applicationLoadViewIn setType:kCATransitionReveal]; [applicationLoadViewIn setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseIn]]; [[myView layer]addAnimation:applicationLoadViewIn forKey:kCATransitionReveal];

Show animation when addsubview