Актуальное по мобильной разработке — Android, iOS, кроссплатформа
Разместить рекламу: @tproger_sales_bot
Правила общения: https://tprg.ru/rules
Другие каналы: @tproger_channels
Сайт: https://tprg.ru/site
Регистрация в перечне РКН: https://tprg.ru/oVBP
Post #3404
4.36K
Топ-6 промптов для ЛЮБОГО iOS-разработчика — ChatGPT поможет сделать все: от анимации до работы «под капотом». Вы станете в разы продуктивнее и сэкономите ДЕСЯТКИ часов работы:
• Создание кастомной анимации
• Выявляем утечки памяти
• Интегрируем фреймворк CoreData для работы с данными
• Внедряем пуш-уведомления в приложение
• Реализовываем сложный дизайн с помощью CollectionView Layout
• Создаем авто-лейаут
Применяем — здесь.
• Создание кастомной анимации
Act as: Expert iOS developer
Project Context: Adding a custom fade-in animation to a UIView.
Environment: Xcode 13, Swift 5.4.
Problem Statement: How can I create a smooth fade-in animation for a UIView?
Relevant Code:
Attempted Solutions: Tried using UIView.animate, but the transition is not
smooth.
• Выявляем утечки памяти
Act as: Expert iOS developer
Project Context: Detecting a memory leak in an Objective-C class.
Environment: Xcode 12, Objective-C.
Problem Statement: How can I find and fix a memory leak in this class?
Relevant Code:
Attempted Solutions: Used Instruments but still can't locate the leak.
• Интегрируем фреймворк CoreData для работы с данными
Act as: Expert iOS developer
Project Context: Integrating CoreData for local data storage.
Environment: Xcode 13, Swift 5.5.
Problem Statement: What's the best way to set up CoreData for an iOS app?
Attempted Solutions: Read Apple's documentation but need a simpler explanation.
• Внедряем пуш-уведомления в приложение
Act as: Expert iOS developer
Project Context: Implementing push notifications.
Environment: Xcode 12, Swift 5.3.
Problem Statement: How to properly handle push notifications for different iOS
versions?
Attempted Solutions: Followed online tutorials but facing inconsistencies.
• Реализовываем сложный дизайн с помощью CollectionView Layout
Act as: Expert iOS developer
Project Context: Creating a custom layout for a UICollectionView.
Environment: Xcode 13, Swift 5.4.
Problem Statement: How to create a horizontal scrolling collection view with
paging enabled?
Attempted Solutions: Tried subclassing UICollectionViewFlowLayout but having
alignment issues.
• Создаем авто-лейаут
Act as: Expert iOS developer
Project Context: Implementing Auto Layout programmatically in Objective-C.
Environment: Xcode 12, Objective-C.
Problem Statement: How can I properly set constraints using Auto Layout in
Objective-C?
Relevant Code:
Применяем — здесь.
- 🤣 14
- 👍 4
- 🔥 4
- 😁 3
- ❤ 1
- 👎 1
- 🤔 1
- 💊 1














