Determine Current iPhone Model Information

Nitya Raut
Updated on 27-Jun-2020 13:40:26

518 Views

iOS Provides a UIDevice class which has all the information about your iPhone that does not violate any privacy laws Apple has.Using the UIDevice we can access information like −UIDevice.current.localizedModel − this returns the localized version of modelUIDevice.current.model − this returns model of current device, e.g. @"iPhone", @"iPod touch"UIDevice.current.name − this returns the current name of the device in use, e.g. "My iPhone"UIDevice.current.systemName − this returns the system name e.g. @"iOS"UIDevice.current.systemVersion − this returns the system version e.g. @"4.0"UIDevice.current.batteryLevel − this returns the battery level, if it is between 0 to 1, it will return the value otherwise if the ... Read More

Should Moral Education Be Made a Compulsory Subject in Schools

Rashmi Iyer
Updated on 27-Jun-2020 13:40:04

2K+ Views

Moral Education or Value Education is becoming an important subject these days in school both at the elementary and secondary level. Moral Education from an early age aims to teach values like respect, ownership, teamwork, empathy, humility, etc.These are the values that are being taught to the kids within the curriculum of the school.It is extremely important that this subject remains an indispensable part of the school learning for the kids due to these reasons:Importance in learning − Holistic learning is not just about academics, getting good grades, attractive jobs, and placements. It lies within the four walls of the ... Read More

Add Days to Current Date Using Java Calendar

Samual Sam
Updated on 27-Jun-2020 13:39:54

1K+ Views

Import the following package for Calendar class in Javaimport java.util.Calendar;Firstly, create a Calendar object and display the current dateCalendar calendar = Calendar.getInstance(); System.out.println("Current Date = " + calendar.getTime());Now, let us add days using the add() method and Calendar.DATE constantcalendar.add(Calendar.DATE, 2);The following is an exampleExample Live Demoimport java.util.Calendar; public class Demo {    public static void main(String[] args) {       Calendar calendar = Calendar.getInstance();       System.out.println("Current Date = " + calendar.getTime());       // Incrementing Days by 2       calendar.add(Calendar.DATE, 2);       System.out.println("Updated Date = " + calendar.getTime());   } }OutputCurrent Date = ... Read More

Detect Screen Size of iPhone 5

Jennifer Nicholas
Updated on 27-Jun-2020 13:39:48

228 Views

Detecting screen size of an apple device is an easy and simple task. The UIKIT module of iOS SDK provides many functions and classes that deal with user interface, screen sizes and many other UI elements.One of them is UIScreen which deals with the device screen.UIScreen.main provides the current main screen of the device in use, which further has methods that return other features and properties of the current screen.To find if the current screen is an iPhone 5 or not, we’ll first have to find the current size of the screen and compare with a value. The height of ... Read More

Significance of Qutub Minar

Rashmi Iyer
Updated on 27-Jun-2020 13:36:32

3K+ Views

Qutub Minar located in the Qutub complex in New Delhi is one of the many historical and magnificent monuments in the capital city of New Delhi. It is located adjacent to the Quwwat-ul-Islam Mosque and is considered as its name suggests is the pillar of faith. The site is protected by the Archaeological Survey of India and the entry fee to the complex is Rs.10 and Rs.250 for Indians and foreigners respectively.Some significant aspects of the monument are −Highest tower − With a height of 72.5 meters Qutub Minar is the highest stone tower in India. It was constructed as ... Read More

Pin Description of 6800

George John
Updated on 27-Jun-2020 13:36:16

2K+ Views

The Motorola M6800 is 40pin DIP Microprocessor. Here we will see the actual pin level diagram of M6800 and also the functional pin diagram of it.The M6800 requires some additional chips to provide the required functions. These chips are:6870 (clock generator)6830 (ROM) or 68708(EPROM)6810 (RAM)6820 (PeripheralInterface Adapter)6850 (AsynchronousCommunications Interface Adapter)6828 (PriorityInterrupt Controller)Now see the Pin Level diagram of Motorola M6800This is the actual pin diagram of the M6800 Microprocessor. Now we will see the functional pin diagram of it.Now let us see the Pin functions of the M6800 microprocessor.PinsTypeFunctionA15– A0Output16-bit address bus, which provides the addresses for memory (up to ... Read More

Subtract Seconds from Current Time Using Calendar Add Method in Java

karthikeya Boyini
Updated on 27-Jun-2020 13:35:46

668 Views

Import the following package for Calendar class in Javaimport java.util.Calendar;Firstly, create a Calendar object and display the current date and timeCalendar calendar = Calendar.getInstance(); System.out.println("Current Date and Time = " + calendar.getTime());Now, let us decrement the seconds using the calendar.add() method and Calendar.SECOND constant. Set a negative value since we are decrementingcalendar.add(Calendar.SECOND, -20);The following is an exampleExample Live Demoimport java.util.Calendar; public class Demo {    public static void main(String[] args) {       Calendar calendar = Calendar.getInstance();       System.out.println("Current Date = " + calendar.getTime());       // Subtract 20 seconds from current date       calendar.add(Calendar.SECOND, ... Read More

Set Up a Simple Delegate for View Controller Communication in iPhone

Anvi Jain
Updated on 27-Jun-2020 13:35:40

724 Views

In this article, you learn about delegates and creating delegates. First of all, What’s a delegate?Delegate is a simple term that refers to communication between objects. It is a simple way of connecting objects and communication between them.How does delegate work?A delegate is created with help of protocol. A protocol is declared in class, inside which some event will happen, that should notify other classes. In protocol we write the declaration of function and it is defined inside the calling class.How to create a delegate?We’ll do this with help of an example project.Steps to perform −Create a class, name it ... Read More

Programmer's View of 6800

Ankith Reddy
Updated on 27-Jun-2020 13:34:26

618 Views

In this section, we will see the basic architecture of the Motorola M6800 Microprocessor, and different registers to write programs into it.To write programs we have to care about the registers and some instructions to access them during program execution. So from this diagram, we can see that there are two 8-bit Accumulators A and B, some 16-bit registers (Program Counter PC, Index Register IX, Stack Pointer SP), and 8-bit flag register CCR.Both of the Accumulators Aand B have the same prominence in the Instruction set. There are very few instructions in 6800, where the Accumulator A is used but B ... Read More

Add Week to Current Date Using Calendar Add Method in Java

Samual Sam
Updated on 27-Jun-2020 13:34:17

2K+ Views

Import the following package for Calendar class in Javaimport java.util.Calendar;Firstly, create a Calendar object and display the current date and timeCalendar calendar = Calendar.getInstance(); System.out.println("Current Date and Time = " + calendar.getTime());Now, let us increment the weeks using the calendar.add() method and Calendar.WEEK_OF_YEAR constant.calendar.add(Calendar.WEEK_OF_YEAR, 2);The following is an exampleExample Live Demoimport java.util.Calendar; public class Demo {    public static void main(String[] args) {       Calendar calendar = Calendar.getInstance();       System.out.println("Current Date = " + calendar.getTime());       // Adding 2 weeks       calendar.add(Calendar.WEEK_OF_YEAR, 2);       System.out.println("Updated Date = " + calendar.getTime());   ... Read More

Advertisements