Tag

UIKit

0 views collected around this technical thread.

Sohu Tech Products
Sohu Tech Products
Nov 6, 2024 · Mobile Development

UIStackView Tutorial: A Comprehensive Guide to iOS Linear Layout

This tutorial explains UIStackView, Apple’s iOS 9 linear layout container that mirrors Flexbox concepts, covering axis, distribution, alignment, and spacing, showing how to add arranged subviews, hide them dynamically, adjust hugging and compression priorities, and noting its limitations such as lacking order, flex‑grow, and flex‑basis controls.

Auto LayoutLinear LayoutObjective-C
0 likes · 8 min read
UIStackView Tutorial: A Comprehensive Guide to iOS Linear Layout
Sohu Tech Products
Sohu Tech Products
Jan 3, 2024 · Mobile Development

UICollectionViewCompositionalLayout Complete Guide

This guide explains how iOS 13’s UICollectionViewCompositionalLayout, together with Diffable Data Source, lets developers define items, groups, and sections using flexible size specifications, nested groups, orthogonal scrolling, custom and supplementary views, and background decorations to build complex, dynamic collection view layouts.

Compositional LayoutDiffable Data SourceSwift
0 likes · 26 min read
UICollectionViewCompositionalLayout Complete Guide
Sohu Tech Products
Sohu Tech Products
Nov 22, 2023 · Mobile Development

Implementing Audio Charts in SwiftUI for iOS Accessibility

This tutorial shows how to create a SwiftUI bar chart, define a DataPoint model, and enhance its accessibility by conforming to AXChartDescriptorRepresentable and applying the accessibilityChartDescriptor modifier, enabling iOS 15’s Audio Charts feature that conveys chart values through pitch‑varying VoiceOver tones.

AXChartDescriptorAudio ChartsSwiftUI
0 likes · 9 min read
Implementing Audio Charts in SwiftUI for iOS Accessibility
JD Retail Technology
JD Retail Technology
Sep 23, 2022 · Mobile Development

Resolving iOS 16.1 Navigation‑Bar Constraint Crash Caused by TitleControl

The article analyzes a crash introduced in iOS 16.1 where hiding and showing the system navigation bar triggers an NSLayoutConstraint activation failure in _UINavigationBarTitleControl, describes reproduction steps, investigates root causes, and presents a reliable fix by forcing layout updates before changing the bar’s hidden state.

ConstraintsMobileDevelopmentNavigationBar
0 likes · 8 min read
Resolving iOS 16.1 Navigation‑Bar Constraint Crash Caused by TitleControl
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Jul 27, 2022 · Mobile Development

iOS RTL (Right‑to‑Left) Language Adaptation: Challenges and Solutions

The article discusses challenges and solutions for adapting iOS apps to right‑to‑left languages like Arabic, covering UI mirroring, layout adjustments using leading/trailing constraints, image flipping, text alignment and attributed strings, Unicode direction controls, collection view handling, RTL‑aware insets, navigation gestures, number formatting, and in‑app language switching with practical code examples.

RTLSwiftUIKit
0 likes · 18 min read
iOS RTL (Right‑to‑Left) Language Adaptation: Challenges and Solutions
Snowball Engineer Team
Snowball Engineer Team
Nov 5, 2021 · Mobile Development

Adapting iOS 15 UI Changes: UINavigationBar, UITabBar, UITableView Issues and Solutions

This article reviews common iOS 15 UI adaptation problems—including UINavigationBar/UITabBar appearance, increased UITableView section header height, cell flickering caused by prefetching, and ProMotion refresh rate support—explains their underlying reasons, and provides concrete code solutions for developers using Xcode 13.

MobileDevelopmentNavigationBarUIKit
0 likes · 13 min read
Adapting iOS 15 UI Changes: UINavigationBar, UITabBar, UITableView Issues and Solutions
Architecture Digest
Architecture Digest
May 18, 2021 · Mobile Development

Open‑Source iOS WeChat Clone App Template – Features and Implementation

This article introduces an open‑source iOS project that replicates WeChat, detailing its architecture, implemented features such as messaging, contacts, discovery and personal pages, the third‑party libraries used, visual screenshots, current status and how developers can contribute.

Open-sourceTLKitUIKit
0 likes · 3 min read
Open‑Source iOS WeChat Clone App Template – Features and Implementation
Sohu Tech Products
Sohu Tech Products
Mar 17, 2021 · Mobile Development

Understanding the Roles of UIKit, CoreAnimation, and CoreFoundation in iOS Rendering

This article explores how UIKit, CoreAnimation, CALayer, and CoreFoundation (including RunLoop) collaborate to perform static drawing and animation on iOS, illustrating the process with a button‑drawing example and detailed code snippets.

CoreAnimationRenderingRunLoop
0 likes · 17 min read
Understanding the Roles of UIKit, CoreAnimation, and CoreFoundation in iOS Rendering
Sohu Tech Products
Sohu Tech Products
Jan 6, 2021 · Mobile Development

Understanding UILabel’s Internal Text Management and Common Pitfalls

This article examines how UILabel stores its text‑related properties internally, reveals the role of the private _content object, and explains the interactions and pitfalls when using the text and attributedText properties in iOS development.

TEXTUIKitUILabel
0 likes · 17 min read
Understanding UILabel’s Internal Text Management and Common Pitfalls
Baidu App Technology
Baidu App Technology
Sep 25, 2020 · Mobile Development

Ultimate Solution for iOS Launch Image Issues

This article explains why iOS launch images often fail to update, reveals that the system caches multiple storyboard‑generated images in the app sandbox, and provides a step‑by‑step method to replace those cached files with custom‑generated ones, including code, orientation handling, and support for older iOS versions.

Cache ManagementStoryboardSwift
0 likes · 12 min read
Ultimate Solution for iOS Launch Image Issues
Sohu Tech Products
Sohu Tech Products
Sep 9, 2020 · Mobile Development

iOS App Clips Development Guide with SwiftUI and UIKit

This article provides a comprehensive guide to creating iOS 14 App Clips, covering usage scenarios, SwiftUI and UIKit implementation, URL handling, Apple Connect configuration, binary download behavior, data sharing, permission management, code differences, testing, and submission considerations for mobile developers.

App ClipsSwiftUIUIKit
0 likes · 11 min read
iOS App Clips Development Guide with SwiftUI and UIKit
Youzan Coder
Youzan Coder
Jun 10, 2020 · Mobile Development

Building a Declarative UI Framework for UIKit in Swift

The article presents a Swift‑based declarative UI framework for UIKit that replaces AutoLayout with a flexible, CSS‑like style system, reactive state handling, and extensible layout nodes, enabling cleaner code, efficient animated lists, and improved development speed while planning future optimizations such as dirty‑checking and virtual layouts.

Declarative UIFlexboxReactive Programming
0 likes · 11 min read
Building a Declarative UI Framework for UIKit in Swift
Amap Tech
Amap Tech
Feb 27, 2020 · Mobile Development

Common Misunderstandings and Pitfalls in iOS Development – Foundation, UIKit, GCD and Best Practices

The article clarifies frequent iOS development misconceptions—from unnecessary observer removal and deprecated NSUserDefaults synchronization to block retain‑cycle tricks, responder‑chain versus hit‑testing differences, GCD queue optimizations, safe main‑queue detection, and proper cancellation of dispatch blocks—offering practical code guidance.

Memory ManagementObjective-CUIKit
0 likes · 17 min read
Common Misunderstandings and Pitfalls in iOS Development – Foundation, UIKit, GCD and Best Practices
JD Retail Technology
JD Retail Technology
Nov 14, 2017 · Mobile Development

Understanding Drag & Drop in iOS: Concepts, APIs, and Implementation

This article explains the iOS Drag & Drop interaction model, covering its core concepts, system integration, multi‑touch features, and step‑by‑step implementation using UIKit APIs such as UIDragInteraction, UIDropInteraction, and NSItemProvider with Swift code examples.

Drag and DropSwiftUIDragInteraction
0 likes · 12 min read
Understanding Drag & Drop in iOS: Concepts, APIs, and Implementation