Found 26504 Articles for Server Side Programming

Changing the text of UIButton programmatically in Swift

Nitin Aggarwal
Updated on 28-Feb-2023 12:18:50

8K+ Views

To change the text of a UIButton in Swift, you can use the setTitle() method of the button. This method takes an argument to set the button title for a particular state. Generally, we used the normal button state. We will change the text of the button programmatically by following the below steps − Step 1 − In this step, we will create two buttons (login and T&C) and add basic customization. Step 2 − In this step, we will change the text of the login button. Step 3 − In this step, we will change the text of the ... Read More

Programmatically go back to the previous ViewController in Swift

Nitin Aggarwal
Updated on 28-Feb-2023 12:15:25

6K+ Views

This article explains how to go back from a view controller programmatically using Swift language. You will see an example of using the popViewController method to go back to the previous controller. What is ViewController in Swift? In Swift, a UIViewController manages the interaction between the user interface and the logic data. It is responsible for handling user interactions with the user interface. The class is part of the UIKit framework and provides some functions and properties along with a life cycle. This class is the most common class used in iOS development. To go back to a previous view ... Read More

How to hide the keyboard in Swift by pressing the return key?

Nitin Aggarwal
Updated on 28-Feb-2023 12:14:04

3K+ Views

In this article, you will learn about how you can hide the keyboard while editing text in the UITextField. In this example, you will hide the keyboard by pressing the return button on the keyboard. In the Swift language, UITextField class provides us with some delegate methods. They called on different actions or events. We will implement one of the delegate methods to hide the keyboard. Also, you will see how to change the return type if required. In this example, we will hide the keyboard in UITextField to enter an email address by following the below steps − ... Read More

How to change the font of UIButton with Swift?

Nitin Aggarwal
Updated on 28-Feb-2023 12:12:57

11K+ Views

In Swift, this is very easy to change the font of a button. You can use the titleLabel property of the button which is of type UILabel class. This property provides another property called font to apply the desired font. Let’s see some examples of changing the font. We will follow the below steps to change the font of a button − Step 1 − Initially, we will do the basic setup with button creation and customization. Step 2 − In this step, we will change the system font with size and weight. Step 3 − In this ... Read More

Plotting stock charts in excel sheet using xlsxwriter module in python

Devesh Chauhan
Updated on 09-Mar-2023 10:40:20

239 Views

Factors such as data analysis and growth rate monitoring are very important when it comes to plotting stock charts. For any business to flourish and expand, the right strategy is needed. These strategies are built on the back of a deep fundamental research. Python programming helps us to create and compare data which in turn can be used to study a business model. Python offers several methods and functions through which we can plot graphs, analyse growth and introspect the sudden changes. In this article we will be discussing about one such operation where we will plot a stock chart ... Read More

Pos tagging and lammetization using spacy in python

Devesh Chauhan
Updated on 27-Feb-2023 14:22:33

1K+ Views

Python acts as an integral tool for understanding the concepts and application of machine learning and deep learning. It offers numerous libraries and modules that provides a magnificent platform for building useful techniques. In this article we will discuss about one such library known as “spaCy”. spaCy is an open-source library and is used to analyse and compare textual data. We will discuss about this library in detail but before we dive deep into the topic, let’s quickly go through the overview of this article and understand the itinerary. This article is divided into two sections − In ... Read More

Ways to create a dictionary of lists in python

Devesh Chauhan
Updated on 27-Feb-2023 14:18:09

3K+ Views

A dictionary in python is a collection of data stored in the form of key value pair. We can assign different datatypes as the value for a key. It helps the coder to store data and categories genres and build databases accordingly. List on the other hand also stores data but here elements are not associated with multiple values. Both dictionaries and lists are indexed. In list we store data in the form of sequences and these sequences can be traversed and manipulated. In this article we will merge the two formats together and create a dictionary of ... Read More

Ways to copy dictionary in python

Devesh Chauhan
Updated on 27-Feb-2023 14:17:07

152 Views

Dictionary in python is a collection data type that stores information in the form of keys which have their corresponding values. It is unordered in nature and the stored data can be manipulated i.e.; it is changeable. We use dictionary to perform various operations, its application extends in the field of data base management, machine learning and web framework development. In this article we will perform a basic dictionary-based operation explaining the different ways in which we can copy a dictionary element from an already existing dictionary. Before we dive deep into the topic, let’s quickly go through the ... Read More

Different ways to initialize list with alphabets in python

Devesh Chauhan
Updated on 27-Feb-2023 14:14:54

1K+ Views

When we are dealing with speech-based operations or creating a letter analysis table, we need a series of ordered alphabets. We can use python programming to perform such operations. Python offers numerous libraries and methods to create an ordered sequence of alphabets. We can contain these alphabetic sequences with the help of several collection datatypes such as lists, tuples dictionaries etc. In this article, we will be performing a similar operation to print a list of alphabets initialized in the correct order. The produced list will contain all the 26 English language alphabets. Before we dive deep into the discussion, ... Read More

Why has python considered a good language for ai and machine learning

Devesh Chauhan
Updated on 27-Feb-2023 13:54:15

714 Views

Machine learning and artificial intelligence are the trendiest field of advancements. We create machines with a vision to produce next generation models. These models learn from the existing data and modify itself. There are multiple fields involved when it comes to the construction of such machines. Not just coding but mathematical equations, vectors and weights are also used. There are numerous programming languages that are used for creating the framework and models for a machine including python. In this article, we will discuss and try to find out why python is considered a good programming language for AI and ... Read More

Advertisements