Send an Attachment in Email Using Swift iOS

Mohtashim M
Updated on 23-Oct-2019 09:05:25

2K+ Views

Knowing how to send attachments in the email is very important since most of the application has sharing features. Hence having hands-on experience is important.In this post, we will be seeing how to send an attachment in the mail using Swift.So, let’s get started.For this, we will be using MFMailComposeViewController, which is a standard view controller, whose interface lets the user manage, edit, and send email messages.You can read more about it here https://developer.apple.com/documentation/messageui/mfmailcomposeviewcontrollerWe will also be using MFMailComposeViewControllerDelegate to handle results from MFMailComposeResult.You can read about it here https://developer.apple.com/documentation/messageui/mfmailcomposeviewcontrollerdelegateWe will be creating one sample application to understand, Step 1 ... Read More

4 Computer Skills to Master for Online Education

Samual Sam
Updated on 23-Oct-2019 08:45:10

190 Views

Continuing your education online is more and more common these days because of the flexibility and numerous options online schools offer people. Learning the course material and scoring well on tests and assignments is only part of the equation to being successful in an online course. You also should have a working knowledge of several computer programs and Internet skills so that your online education goes as seamlessly as possible. That way, you can focus on learning and not on computer frustrations.Microsoft OfficeIt might seem obvious, but understanding how to use Microsoft Office is a key ingredient in a successful ... Read More

Advance Browsing on Android Using UC Browser

Samual Sam
Updated on 23-Oct-2019 08:42:12

275 Views

Now, as per the user’s requirement, mobile browser apps are continuously increasing as like desktop browser apps. Users who really like mobile browsing instead of desktop browsing, for them UC Browser is a pretty good option and free too.UC Browser is a mobile browser given by UCWeb. First, it named as UC Mobile as a Java application that launched in April 2004. But, it is now supports platforms including Android, iOS, Windows Phone, Symbian, Java and Blackberry.Recently, this browser app v3.0 has been updated for Android with lot of useful features like; handling online video, multi-touch gestures and font size ... Read More

Call a Method After a Delay in Swift iOS

Mohtashim M
Updated on 23-Oct-2019 08:40:00

2K+ Views

In this post, we will be seeing how you can delay a method call using Swift. Here we will be seeing how you can achieve the same in two ways, So let’s get started, We will be seeing both the example in Playground, Step 1 − Open Xcode → New Playground.In the first approach, we will be using asyncAfter(deadline: execute:) instance method, which Schedules a work item for execution at the specified time and returns immediately.You can read more about it here https://developer.apple.com/documentation/dispatch/dispatchqueue/2300020-asyncafterStep 2 − Copy the below code in Playground and run, func functionOne() {    let delayTime = ... Read More

Rotate Image in ImageView by Angle on iOS App Using Swift

Mohtashim M
Updated on 23-Oct-2019 08:36:31

4K+ Views

Images are everywhere almost in all application, you might have come across many applications like gaming applications where you see images getting rotated.So, In this post, we will be seeing how to rotate the image in an image view by an angle in an iOS application.So, Let’s get started, Step 1 − Open Xcode→SingleViewApplication→name it RotateImage.Step 2 − Open Main.storyboard, add UIImageView and add 2 buttons as shown below name them ROTATE BY 90 DEGREES AND ROTATE BY 45 DEGREES. Add some sample images to UIImage View.Step 3 − Create @IBAction for both buttons and name them as rotate45button and ... Read More

Get Android Emulator's IP Address

Azhar
Updated on 23-Oct-2019 08:34:58

1K+ Views

This example demonstrates how do I get the Android Emulator’s IP address.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.         Step 3 − Add the following code to src/MainActivity.javaimport androidx.appcompat.app.AppCompatActivity; import android.net.wifi.WifiManager; import android.os.Bundle; import android.text.format.Formatter; import android.view.View; import android.widget.Button; import android.widget.TextView; public class MainActivity extends AppCompatActivity {    Button button;    TextView textview;    @Override    protected void onCreate(Bundle savedInstanceState) {       super.onCreate(savedInstanceState);       setContentView(R.layout.activity_main); ... Read More

Save Power of a Laptop on Battery Backup

Samual Sam
Updated on 23-Oct-2019 08:22:50

175 Views

At the time of doing some important task on a laptop without connecting laptop from the power plug (Running laptop on battery backup). In this situation, nobody likes to see their laptop screen suddenly goes dark or shut down. This happens because of less battery life, but some simple maintenance and power saving technique can keep your laptop to run for longer period of time. You can make your laptop to run for longer period of time by turning off or disabling all applications that consumes more power on your computer. This article is going to explain you some important ... Read More

Find All Patterns of 1, 0+1 in a String Using Python Regex

Pradeep Elance
Updated on 23-Oct-2019 08:22:30

263 Views

In this tutorial, we are going to write a program which finds all the occurrences of the 1(0+1) in a string using the regexes. We have a re module in Python which helps us to work with the regular expressions.Let's see one sample case.Input: string = "Sample 1(0+)1 string with 1(0+)1 unnecessary patterns 1(0+)1" Output: Total number of pattern maches are 3 ['1(0+)1', '1(0+)1', '1(0+)1']Follow the below steps to write the code for the program.Algorithm1. Import the re module. 2. Initialise a string. 3. Create a regex object using regular expression which matches the pattern using the re.compile(). Remember to ... Read More

Check If Both Halves of the String Have the Same Set of Characters in Python

Pradeep Elance
Updated on 23-Oct-2019 08:20:20

175 Views

We have to check whether two halves of a string have the same set of characters or not in Python. The frequency of the characters in the two halves must be identical. If the length of the string is odd, ignore the middle and check for the remaining characters. Follow the below steps to write code for the program.Algorithm1. Initialize a string. 2. Initialize an empty dictionary variable alphabets. 3. Initialize a variable mid with length / 2. 4. Write a loop until mid element.    4.1. Initialize the corresponding dictionary item by alphabets[char] with one if it's not initialized. ... Read More

Emergency Restart in Windows 8

Samual Sam
Updated on 23-Oct-2019 08:16:29

288 Views

 The Emergency restart an easy and user-friendly feature for user, given by Microsoft. An important key for users who want to restart their device in a minute or less than minute.The emergency restart mode closes all running apps forcefully without saving anything. It is useful when you have some issues with apps or the OS hanging or crashing and you would like to quickly restart the PC to fix it.Windows 8 and Windows 8.1, the emergency restart feature uses the hardware power button of Windows 8 tablet, laptop or desktop for operation. But this operation isn’t suggested yet user does ... Read More

Advertisements