In React, obtaining the current year may seem like a simple task, yet it plays a crucial role in various applications, especially when displaying dynamic content or creating time-sensitive features. We'll explore two practical methods to achieve this: utilizing JavaScript's Date object and leveraging React's state management to update the year … [Continue reading...]
Remove all Classes from an Element in JavaScript
There are several ways to remove all classes from an element in JavaScript. We will see more details in this guide first we have three methods below to remove all classes from an element that will see by one. 1. Using classList Method to remove classes: The classList property provides methods to add, remove, or toggle classes on an … [Continue reading...]
How to Filter a Map in JavaScript
Maps are powerful data structures in JavaScript, storing key value pairs. But sometimes, we need to extract specific information from this wealth of data. That's where filtering comes in, allowing us to focus on the key-value pairs that meet our criteria. in this tutorial, we will see how to filter a map in javascript Here, we'll explore two … [Continue reading...]
Sorting a Set in JavaScript: A Simple Guide
Sorting a Set in JavaScript involves a few steps but follows a different approach compared to arrays. Sets don’t have a built-in sort() method like arrays, but we can convert them to arrays, sort the arrays, and then convert them back to Sets. Method 1: Creating an Array from Set Elements Step 1: Creating and Populating a Set Create … [Continue reading...]
Best Next JS courses to learn Next JS in 2023
There are many great courses available for learning Next.js, here in the Best Next JS courses we will recommend a few courses that are particularly well suited for beginners and intermediate & advanced learners who are looking to learn Next.js. We will see a list of tutorials from udemy, educative.io, Pluralsight, etc. Also, we will keep and … [Continue reading...]
iOS DatePicker tutorial (UIDatePicker) using Swift
iOS DatePicker control introduction In the Previous tutorial, we created UISegmentedControl example, now this project going to implement how to create an "iOS DatePicker" example using swift. UIDatePicker object using to select the specific date and time. If you are a documentation lover, you can read the UIDatePicker apple documentation here, a … [Continue reading...]
UIAlertController iOS 8 using Swift
UIAlertController was introduced with iOS 8 with the replacement of UIAlertView and UIActionSheet, yes these two methods are deprecated in iOS 8 UIAlertController object is used to display alerts and actions sheets to the user, Switching between an alert or action sheet is done by setting the preferred style when creating the controller. If you … [Continue reading...]
UISlider example (iOS Slider) using swift
An iOS UISlider object is used to select a single value from a continuous range of sliders, the slider is always displayed as horizontal bars and it has a thumb that is used to select the specific values in the slider. for more reference, you go through the apple documentation for UISlider class. In this tutorial, we are going to learn about how … [Continue reading...]
UITextField and UITextField Delegate in swift
UITextField object is one of the most commonly used UI Control in iOS, it displays editable text and sends an action message to a target object, it usually gets a small amount of text from the user and performs some immediate action like search operation, based on that text. In this tutorial, we are going to explain about UITextField and … [Continue reading...]
UISwitch Tutorial using swift in iOS
UISwitch Tutorial introduction The iOS switch control is like a real time electronic switch . UISwitch class is used to create and manage on/off state of the buttons that will work like a switch, this UISwitch on/off state is represented by boolean object, you can see the example of uiswitch in ios settings apps like Auto-Capitalization, and … [Continue reading...]
UISegmentedControl example using swift in ios
UISegmentedControl example introduction In the previous tutorial we have learned about working with UISwitch, in this "UISegmentedControl Example" tutorial going to explain about creating UISegmentedControl. The iOS segmented control is a UI component that is used to display, in a compact UI with serious of segment options for the user to choose … [Continue reading...]
UIWebView example (iOS webview) using objective c
Some applications need to display online web content, for iOS development that needs "UIWebView" to display online sites as well as local html files or even displaying a PDF documents we will use UIWebview. In this tutorial we will see how to create "uiwebview example" using objective-c. Open XCode, create a single view application using … [Continue reading...]
Recent Comments