Create a WebView in iOS (iPhone)

Anvi Jain
Updated on 30-Jun-2020 05:24:12

572 Views

To create a web view in iOS we'll use Webkit framework of iOS. Previously UIWebView was used to create web views but that has been deprecated now.We'll use WebKit View in this project.Create a new project and from object library drag and drop webKit View to the ViewController.Give constraints as per your requirement.Make an outlet connection to the webKit in ViewController.We'll open facebook in this example using the code below.let url = URL(string: "https://www.facebook.com") override func viewDidLoad() {    super.viewDidLoad()    let request = URLRequest.init(url: self.url!)    self.wbView.load(request) }Now finally we need to add a key App Transport Security Settings ... Read More

Pin Diagram of 8212

Jennifer Nicholas
Updated on 30-Jun-2020 05:22:23

555 Views

We find 8212 available in nowadays as a package chip which is dual inline having 24 pins total. We find its functional pin diagram below.Fig: Pin diagram of 8212 functionalFig: Pin diagram of 8212Voltage of + 5 V is required for it to work based on the supply which is DC. The latch which is 8 bit in 8212 receives the information which is present on the eight data inputs ranging from DI7 to D10. The condition which helps in information latching is present on DI7 to DI0 depends on the state of logic of the pin which is of ... Read More

Intel 8212 in Mode 0

Rishi Rathor
Updated on 30-Jun-2020 05:19:41

319 Views

The below fig shows clearly how 8212 works in the mode 0Fig: 8212 working in mode 0We use this mode generally when we want 8212 to function like an input port. An input device gets connected to DI7-0, and the microprocessor employed here receives the information on DOs ranging from D7-D0. Here in this mode STB acts as clock for the given latches. The latch which is of 8 bits in 8212 follows the series information which is present on DI7 to DI0 as long as STB is equal to 1. When the STB makes a transition, which is high ... Read More

Intel 8212 in Mode 1

Vrundesha Joshi
Updated on 30-Jun-2020 05:19:09

340 Views

The figure below shows the working of 8212 in mode 1Fig: Working of 8212 in mode 1We use this mode generally when we want 8212 to function as an output port. Here, microprocessor drives DI7-0, and the device at the output receives the information on Do7-0. The clock to the latches is provided in this mode. 8212 latches the information on DI7-0 when the CS makes transition from high to low. The CS signal gets activates when INT* is transferred by the interrupts by the driven data transfer scheme which is always performed when desired. The buffer at the output ... Read More

Applications of — in Mode 0

Anvi Jain
Updated on 30-Jun-2020 05:18:41

262 Views

We use Intel 8212 in variety of applications. Let us discuss applications of 8212 in Mode 0It acts as buffer which is gatedBus driver which is Bi-directionalFor Interrupting the input portTo supply of eight instructions based on RST.Intel 8212 as gated buffer: A weak logic signal is converted to a strong logic when 8212 works in logic 0. The outputs of 8212 in mode0 is capable of sinking the 15 mA in 0 state, and which proves that a minimum high output voltage of nearly 3.65 V is in the state 1. Intel8212 is always given backup when the input ... Read More

Applications of — in Mode 1

Jennifer Nicholas
Updated on 30-Jun-2020 05:17:33

220 Views

Let's discuss the Following two applicationsLow order address latchOutput port which is interrupting.Intel 8212 as low-order address latch − Here the low-order address lines and data lines are multiplexed and are available as AD7-0. It is convenient to have the address as many times and the separation of data on the different lines. Let's for an example, if we connect a chip like 2716 in an 8085-based system, the 2716 needs bit address of11 bits in its address pins, and here is separate 8 pins kept for data. Now connecting the AD7-0 pins of 8085 to the LS 8 address ... Read More

Create Left Arrow Button on Toolbar for iPhone/iPad

Vrundesha Joshi
Updated on 30-Jun-2020 05:16:57

287 Views

To create a button on toolbar we'll need to use two different components of iOS and another image that is a back arrow. Before that let's see what those components areToolbar − Toolbar is a native iOS component that is used to display items or toolbar on the bottom of screen.Bar Button item − It is a button that's usually created on a Toolbar or a navigation bar.When a toolbar is created using storyboard, it comes with a Bar button item.Let's start by creating a new project, in the main.storyboard give some background color to the only viewController we have.From ... Read More

Change UIView's Border Color and Thickness in Cocoa Touch

Jennifer Nicholas
Updated on 30-Jun-2020 05:13:43

631 Views

In this article we'll learn how to change a View's border color and thickness.This can be done in two ways as mentioned below.Method 1 − Writing the codeLet's suppose we have a view name backView, then to add a border color and thickness we can writebackView.layer.borderWidth = 5 // Or any integer valuebackView.layer.bordercolor = colorLiteral(red: 0.09019608051, green: 0, blue: 0.3019607961, alpha: 1) this code will add a border of 5 width and a dark blue color. Below is the output is produces.Method 2 − Creating an extension of UIView with designable and inspectable@IBDesignable class DesignableView: UIView { } extension UIView ... Read More

Exchange Content of HL Register Pair with DE Register Pair in 8085

Rishi Rathor
Updated on 30-Jun-2020 05:06:12

1K+ Views

In this program we will see how to exchange the content of DE and HL pair.Problem StatementWrite 8085 Assembly language program to swap the content of HL and DE register pair.DiscussionThis process is very simple, 8085 has XCHG instruction. This instruction swaps DE and HL pair content. We are storing some values to DE and HL pair directly, and then exchange them using XCHG.InputDE = 5678H HL = CDEFHFlow DiagramProgramAddressHEX CodesMnemonicsCommentsF00016, 56MVI D, 56HLoad D with56HF0021E, 78MVI E, 78HLoad D with78HF00426, CDMVI H, CDHLoad D with CDHF0062E, EFMVI L, EFHLoad D withEFHF008EBXCHGExchange the content of DE and HLF00976HLTTerminate the programOutputDE ... Read More

Find Sum of Digits of 8-Bit Number in 8085

Rishi Rathor
Updated on 30-Jun-2020 05:01:51

1K+ Views

In this program we will see how to add the digits of an 8-bit number.Problem StatementWrite 8085 Assembly language program to add the digits of an 8-bit number stored in memory location 8000H.DiscussionTo get the digits of an 8-bit number, we can use the masking operation. At first we will mask the upper nibble, and then the lower nibble. After masking the lower nibble, we have to rotate it to the right to make it least significant nibble. Then we can simply add it to the stored nibble to get the sum.InputAddressData......80008A......ProgramAddressHEX CodesMnemonicsCommentsF0003A, 00, 80LDA 8000HLoad the number into AF0034FMOV ... Read More

Advertisements