#NeedOne
  • Home
  • iOS
  • Android
  • Unity
  • Other
  • About
Log in Subscribe
Log in Subscribe
  • Home
  • iOS
  • Android
  • Unity
  • Other
  • About

featured story

2 hours to master RxSwift - Part 1

a simple introudction on rxswift, including what is rxswift, how to use it and a quick example (with swift code) on demo that.

14 Mar 2023 · 8 min read
Read post
2 hours to master RxSwift - Part 1
Sort custom objects by property in Swift Swift

Sort custom objects by property in Swift

Many of us have met the situation that we have an array/list of custom objects, and we want them can be sorted in a specific order. For example, we

  • Go to the profile of  Needone
Needone
18 Feb 2023 · 1 min read
RunBlocking in Kotlin Coroutine Android

RunBlocking in Kotlin Coroutine

In previous post, we have gone through most of the key concepts and methods in Coroutine: Kotlin Coroutines Table Content 1, Introduction to Coroutine in Kotlin 2, Non-blocking in Kotlin

  • Go to the profile of  Needone
Needone
16 Feb 2023 · 2 min read
Format currency in Swift Swift

Format currency in Swift

Recently I have done quite an amount of work on formatting currency in Swift project, here are some tricks on how to format number in Swift: Format currency with auto

  • Go to the profile of  Needone
Needone
14 Feb 2023 · 1 min read
Lazy in Kotlin Android

Lazy in Kotlin

In the Kotlin programming language, the term "lazy" typically refers to a type of property or variable that is only initialized when it is first accessed, rather than when the

  • Go to the profile of  Needone
Needone
11 Feb 2023 · 3 min read
Get the current week in Swift iOS

Get the current week in Swift

To get the current week in Swift 5, you can use the Calendar and DateComponents classes to calculate the week number for the current date. Here's an example of how

  • Go to the profile of  Needone
Needone
9 Feb 2023 · 1 min read
SceneDelegate iOS

SceneDelegate

In iOS, the SceneDelegate is a class that is responsible for managing the scenes in your app. A scene is a discrete unit of your app's user interface, such as

  • Go to the profile of  Needone
Needone
7 Feb 2023 · 2 min read
Data Racing in Swift Swift

Data Racing in Swift

A data race in Swift occurs when two or more threads access the same memory location simultaneously and at least one of them is writing to it, without proper synchronization.

  • Go to the profile of  Needone
Needone
4 Feb 2023 · 2 min read
Encode URL in Kotlin Android

Encode URL in Kotlin

In Kotlin, you can use the URLEncoder class to encode a URL string so that it can be safely transmitted over the internet. The URLEncoder class is part of the

  • Go to the profile of  Needone
Needone
2 Feb 2023 · 1 min read
@AppStorage vs. @UserDefault in SwiftUI SwiftUI

@AppStorage vs. @UserDefault in SwiftUI

Both the @AppStorage and @UserDefault property wrappers in SwiftUI allow you to store and retrieve data using UserDefaults. However, there are a few key differences between the two: @AppStorage In

  • Go to the profile of  Needone
Needone
31 Jan 2023 · 2 min read
HTTP Encoding Other

HTTP Encoding

HTTP encoding, also known as percent-encoding or URL encoding, is a way of encoding special characters in URLs and other HTTP data, such as headers and body content. HTTP encoding

  • Go to the profile of  Needone
Needone
30 Jan 2023 · 1 min read
Get location coordinates using CLLocationManager in Swift Swift

Get location coordinates using CLLocationManager in Swift

To get the location (latitude and longitude) of a device in Swift, you can use the Core Location framework, which is an official library from Apple. Only 2 steps are

  • Go to the profile of  Needone
Needone
28 Jan 2023 · 2 min read
Encode URL in Swift Swift

Encode URL in Swift

It is quite common to see that we can correctly set up the HTTP header, token, body and POST/GET methods in our iOS code, but we still can't get

  • Go to the profile of  Needone
Needone
26 Jan 2023 · 2 min read

About Us

Devotes to iOS and Android Development

Tags

iOS
Swift
Android
Kotlin
Other

Subscribe

Get the best viral stories straight into your inbox!

Great! Check your inbox and click the link to confirm your subscription
Please enter a valid email address!
  • Sign Up
  • Private Privacy
  • Terms and Conditions
© 2023 #NeedOne. All rights reserved.