RepositoryObjective-CUSHoa Kỳ
calm

calm/tooltip

[DEPRECATED] The tooltip that has all the right moves

131sao
23fork
5issue
3lượt xem

⚠️ Dự án không còn được bảo trì — Tooltip iOS tự động căn vị trí

Đây là một dự án đã ngưng phát triển (archived), không còn nhận bất kỳ cập nhật nào.

CalmTooltip là một thư viện tooltip cho ứng dụng iOS, viết bằng Objective-C. Nó giúp hiển thị các chú giải chú thích (tooltip) trỏ đến một view cụ thể một cách tự động và mượt mà. Thư viện tự động xử lý các phức tạp liên quan đến hierarchy view và offset của UIScrollView.

✨ Điểm nổi bật

  • Tự động căn vị trí: Chỉ cần chỉ định view cần trỏ tới, CalmTooltip sẽ tự động tính toán vị trí hiển thị phù hợp nhất.
  • Theo dõi di chuyển view: Tooltip sẽ luôn trỏ đúng vào fromView ngay cả khi view đó đang di chuyển trên màn hình.
  • Tự động cập nhật mũi tên: Khi view di chuyển gần mép màn hình, tooltip sẽ tự động thay đổi hướng mũi tên để vẫn hiển thị hoàn toàn trong bounds.
  • Hỗ trợ nhiều cách trình bày: Có thể trình bày từ một view, một rect, hoặc một point.
  • Dễ dàng tùy biến giao diện: Hỗ trợ thay đổi bóng đổ, màu viền, padding, chiều cao mũi tên, v.v.
  • Quản lý thời gian tắt tự động: Hỗ trợ đặt thời gian tắt tooltip sau một khoảng thời gian nhất định.
  • Delegate tùy chọn: Cung cấp callback khi tooltip được hiển thị, ẩn, hoặc được nhấn.
  • Cài đặt đơn giản: Hỗ trợ cài đặt qua CocoaPods hoặc tải nguồn trực tiếp.

💡 Vì sao đáng chú ý

CalmTooltip giải quyết một vấn đề phổ biến trong phát triển iOS: việc tính toán chính xác vị trí của tooltip khi giao diện có nhiều view lồng nhau và hỗ trợ cuộn (scroll). Thay vì phải viết logic tính CGRect phức tạp, phát tri người dùng chỉ cần gọi một phương thức đơn giản và thư viện sẽ tự động xử lý mọi thứ.

Tuy nhiên, lưu ý rằng dự án này đã ngưng bảo trì. Nhà phát triên khuyên bạn nên tìm kiếm các giải pháp thay thế đang được hỗ trợ cho các dự án mới.


#iOS #ObjectiveC #Tooltip #Deprecated #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositorySwift
vsouza/awesome-ios

A curated list of awesome iOS ecosystem, including Objective-C and Swift Projects

54.1k
Aug 27, 2026
RepositoryObjective-C
SDWebImage/SDWebImage

Asynchronous image downloader with cache support as a UIImageView category

25.6k
Apr 15, 2026
RepositoryObjective-C
Adobe-Marketing-Cloud/mobile-services

⛔️ Deprecated ⛔️ These SDKs are no longer supported by Adobe. Please see Adobe Experience Platform Mobile SDKs for current and supported versions.

170
Oct 14, 2022
Repository
dkhamsing/open-source-ios-apps

:iphone: Collaborative List of Open-Source iOS Apps

53.6k
Nov 30, 2026
RepositoryJavaScript
Semantic-Org/Semantic-UI

Semantic is a UI component framework based around useful principles from natural language.

51.0k
Nov 27, 2024
RepositoryMDX
react-native-elements/react-native-elements

Cross-Platform React Native UI Toolkit

25.9k
May 21, 2026
RepositoryTypeScript
GeekyAnts/NativeBase

Mobile-first, accessible components for React Native & Web to build consistent UI across Android, iOS and Web.

20.4k
Jan 31, 2026
RepositoryPHP
jamierumbelow/codeigniter-base-model

⛔️DEPRECATED CodeIgniter base CRUD model to remove repetition and increase productivity

1.0k
Apr 4, 2018
RepositorySwift
aaronabentheuer/AAWindow

[Deprecated] · UIWindow subclass to enable behavior like adaptive round-corners & detecting when Control Center is opened.

473
May 7, 2018