uikit Questions
5
Solved
I'm trying to reproduce a "Instagram" like tabBar which has a "Utility" button in the middle which doesn't necessarily belong to the tabBar eco system.
I have attached this gif to show the behavi...
2
After upgrading my project to iOS 18, I’ve encountered an issue where the UITabBarController no longer displays the tab bar items or icons properly. The same code has been working flawlessly across...
Evidence asked 10/9 at 16:29
5
Solved
Right now, I am in the process of converting from UIKit to SwiftUI. In UIKit, there is a native Close, X-Styled Button - UIButton.ButtonType.close, like shown below:
I wanted to find the equivalen...
0
Sample app
The following is a UIKit app that displays a collection view with list layout and diffable data source (one section, one row).
class ViewController: UIViewController {
var collectionVie...
Featherweight asked 4/8 at 11:7
6
As of now, I have an application built entirely using UIKit. However, I wish to be able to start implementing some SwiftUI Views to replace some UIViewControllers.
I've been able to do this to na...
Flagstad asked 19/2, 2020 at 18:3
7
I have an UIImage and want to shift it's saturation about +10%. Are there standard methods or functions that can be used for this?
Pennant asked 17/7, 2009 at 17:48
3
Solved
I am trying to detect when the device is on iPad and in Portrait.
Currently I use the UIDevice API in UIKit and use an environment object to watch changes. I use the solution found here - Determini...
18
Solved
I need to customise the look of a back button in a Swift project.
Here's what I have:
Here's what I want:
I've tried creating my own UIBarButtonItem but I can't figure out how to get the image...
Clone asked 31/5, 2016 at 18:15
1
So I want to make a swift file in the sources folder that imports UIKit, but it says that no such module 'UIKit', why is it like that?
Can someone help?
Empire asked 22/4, 2022 at 18:12
7
Solved
How can I use a SwiftUI view struct in place of a traditional cell and xib in a UITableViewController?
import UIKit
import SwiftUI
class MasterViewController: UITableViewController {
var detail...
15
I am trying to hide the navigationBar when putting some SwiftUI inside of a UIKit UIViewController:
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
self.navigation...
Orlan asked 5/11, 2019 at 4:49
7
Solved
I am trying to use UIKit's internal back button image.
I have asked this question before and got the technically correct answer that it inherits it from the previous View, BUT if I insert this code...
Twomey asked 4/8, 2015 at 11:23
2
I have a problem with the new PHPickerViewController on iOS 14. When my app request for photo library authorization, the system will prompt the user with three options, and if the user selects &quo...
Earmark asked 27/10, 2020 at 4:30
5
Solved
I want to remove a UIButton's image and replace it with a title at runtime. Although I am able to add the title to the UIButton, I am unable to remove the image. Does anyone have some advice?
Seng asked 2/3, 2011 at 17:28
18
Solved
Since my app got support for all orientation. I would like to lock only portrait mode to specific UIViewController.
e.g. assume it was Tabbed Application and when SignIn View appear modally, I onl...
Pomfret asked 9/3, 2015 at 9:29
16
Solved
I have checked several links on how to convert UIColor codes to HEX however I am not sure on how to call to the method to display them in NSLog. I haven't got the reputation to comment so posting a...
Dygall asked 13/10, 2014 at 13:21
9
Solved
With the release of iOS 8 I would like to disable the predictive text section of the keyboard when I begin typing in a UITextField. Not sure how this is done, any help would be appreciated!
Distressful asked 10/9, 2014 at 14:5
7
I'm trying to use the new UIImpactFeedbackGenerator for haptic feedback, but it isn't working.
Testing on iPhone 7
iOS 10.1.1
System Haptic setting is enabled
I'm using the following code examp...
Markswoman asked 25/11, 2016 at 9:19
4
Solved
I am developing an app using SwiftUI. The app is based around a NavigationView.
I am using a third-party framework that provides UIKit components and the framework has not been updated to support S...
Peepul asked 22/9, 2019 at 13:51
17
Solved
I have a UILabel that displays some chars. Like "x", "y" or "rpm". How can I calculate the width of the text in the label (it does not ues the whole available space)? This is for automatic layoutin...
Terti asked 24/8, 2009 at 19:52
7
I have an Assertion Failure in UIPageViewController.
Assertion failure in -[UIPageViewController _flushViewController:animated:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit/UIKit-3512.6...
Laster asked 16/3, 2017 at 12:12
4
My root view controller's implementation of supportedInterfaceOrientations almost always returns UIInterfaceOrientationMaskAll, however there is one edge case where it returns UIInterfaceOrientatio...
Cathartic asked 31/10, 2012 at 1:47
1
Solved
I have followed this documentation to set up Universal links. I think I've set up everything successfully because when I tap a universal link, my app is launching and I'm receiving the URL in scene...
Epenthesis asked 4/1 at 9:10
2
I'm swizzling willMoveToWindow: and I came across an issue where it was being called twice on views.
When a new view controller is pushed onto a UINavigationController,
willMoveToWindow: is cal...
Castle asked 27/12, 2015 at 20:29
6
Solved
I have a UITableViewController subclass that I have wrapped in UIViewControllerRepresentable.
I have set the navigationItem.title and navigationItem.leftBarButtonItems in my view controller.
I pre...
Aurthur asked 11/12, 2019 at 23:10
1 Next >
© 2022 - 2024 — McMap. All rights reserved.