In this article we’ll learn how to create borders and shadows. We’ll do it in two ways, one by directly coding and one by making it designable and an extension of UIView, which can be edited directly in the storyboard.Let’s see how to play around with borders in ios −Method 1 − Creating borders with simple coding –Borders are a property of layer, above which a View is drawn, a border has the following properties, Border color, border width.self.view.layer.borderColor = colorLiteral(red: 0.4392156899, green: 0.01176470611, blue: 0.1921568662, alpha: 1) self.view.layer.borderWidth = 5.0To create corner radius of a view we can useself.view.layer.cornerRadius ... Read More
It has eight addressable 8-bit registers: A, B, C, D, E, H, L, F, and two 16-bit registers PC and SP. These registers can be classified as −General Purpose RegistersTemporary Registers: a) Temporary data register b) W and Z registersSpecial Purpose Registers: a)Accumulator b) Flag registers c) Instruction registerSixteen-bit Registers: a) ProgramCounter (PC) b) Stack Pointer (SP)General Purpose RegistersRegisters B, C, D, E, H, and L are general purpose registers in 8085 Microprocessor. All these GPRS are 8-bits wide. They are less important than the accumulator. They are used to store data temporarily during the execution of the program. For ... Read More
For date formatting symbols, use the DateFormatSymbols class.Firstly, set weekdays using a string arrayString[] weekDays2 = { "", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday" };Now, set short week days withDateFormatSymbols mySymbols = new DateFormatSymbols(); mySymbols.setShortWeekdays(weekDays2);Get the date −dateFormat = new SimpleDateFormat("EEEE, dd MMM yyyy", mySymbols); System.out.println(dateFormat.format(new Date()));The following is an example −Example Live Demoimport java.text.SimpleDateFormat; import java.text.DateFormat; import java.text.DateFormatSymbols; import java.util.Date; public class Demo { public static void main(String[] args) { String[] weekDays1 = { "", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" }; String[] weekDays2 = { "", "monday", "tuesday", "wednesday", "thursday", ... Read More
We have seen some of the features of 8051 microcontrollers. Now in this section, we will discuss different features of it. The 8051 Features are like below8051 has 8-bit Processing Unit to control applications.Using 8051 we can process bits, or in other words, the bit processing capability is present in the 8051microcontroller.8051 has separate Data memory and separate program memory spaces. The program memory is basically 4KBof on-chip EPROM (address space 0000H to 0FFFH), and 128 bytes of RAM (address space 00H to 7FH)There is total 64KB of program memory address space including the on-chip 4KB space.The RAM Address space (128 ... Read More
To take a screenshot of an iOS Application running in Simulator you can you any of the below ways.Capturing device Screen − you can capture your Mac's screen from the area your simulator is running in. to do this you have to press, Command, shift and 4 at the same time, then drag to select the area you want to capture. Alternatively you can press 3 instead of 4 to capture the whole screen.Open simulator, and press Command along with S at the same time, this will take a screenshot and save on desktop generally.you can also open simulator, go ... Read More
The Intel 8085 is an 8-bit microprocessor produced by Intel and introduced in 1976. It is a software-binary compatible with the more-famous Intel 8080 with only two minor instructions added to support its added interrupt and serial input/output features. When the 8085desires to receive 8-bit information, it receives it on these eight pins AD7, AD6, …, AD0. These eight pins are collectively called AD7-0. They are called basically “Address Data”. When the 8085 desires to send out 8-bit information, it sends it out on these same pins. these pins are bi-directional pins.The same lines are used for both receiving information and ... Read More
To hide the back button on navigation bar we’ll have to either set the navigation button as nil and then hide it or hide it directly.Let’s create a project, add 2 view controller and Embed them in navigation controller. Let’s see how this project looks when run without any code to remove the navigation bar.This code set’s the navigation bar’s back button as hidden.self.navigationController?.navigationItem.hidesBackButton = trueThis code set’s the navigation bar’s back button as nilself.navigationItem.leftBarButtonItem = nil;A combination of these to approaches would be a better solution and works even if you have set a custom navigation bar.self.navigationItem.leftBarButtonItem = nil ... Read More
There are various versions of 8051 Microcontroller. These versions are 8051H, 8051BH and 8051CH. Here we will see the general 8051 Microcontroller. This microcontroller works on a +5V dc power source. As it has on-chip clock circuit, so we need only the crystal oscillator between the pin XTAL1 and XTAL2 with two additional capacitors. As we have mentioned that the general clock frequency is 12MHz, but some other version of 8051 uses 20MHz crystal oscillator. There is a clock dividing circuit to divide the clock frequency to provide an internal clock pulse. So for 12MHz clock, it is divided into ... Read More
The Intel 8085 ("eighty-eighty-five") is an 8-bit microprocessor produced by Intel and introduced in 1976. It is a software-binary compatible with the more-famous Intel 8080 with only two minor instructions added to support its added interrupt and serial input/output features. Intel 8085 can read or write 8 bits at a time. Also, memory is used for storing data and results, 8 bits in each memory location. Like two memory locations and four memory locations, if there are eight memory locations, 3-bit address is needed to specify the location of interest. If address is 000, location 0 is selected, etc. and ... Read More
In this article we’ll learn about Corona, PhoneGap and Titanium, though all these technologies are different, the common thing between these is that they all are cross platform. i.e they can be used to write program once and then run that on multiple platforms like iPhones and android devices.Corona − Corona is a free and open source SDK (Software development kit), developed by corona Labs roughly 10 years ago in 2009. Corona is mainly for developing 2D mobile applications for most of the platforms including iOS, Android, Desktop/ Windows Applications. Corona is based on top of C++ and openGL to ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP