Questions tagged uiview

Explore the latest questions and answers asked by our top developers.

Is there a way to render Views as Entities in RealityKit?

I’ve been trying to find a way to display UIViews as 3d objects in my ARView. I have been trying to create a sort-of a box which would act as a display to contain a UIView but with no luck. This answer provides a solution for SceneKit, but the same does not seem to work […]

By Volt
Published
Categorised as augmented-reality, realitykit, swift, uiview, view Tagged , , , ,

UIView pan Gesture conflict with system gesture

I am installing a UIPanGestureRecognizer on the main view as follows: panGesture = UIPanGestureRecognizer(target: self, action: #selector(previewPanned(_:)) panGesture?.minimumNumberOfTouches = 1 panGesture?.maximumNumberOfTouches = 1 view.addGestureRecognizer(panGesture!) The problem is it gets simultaneously recognised with the system swipe gesture on home indicator to dismiss the app. How do I avoid this conflict? EDIT: The problem arises when I […]

Multiline UILabel on navigation bar title view

I have a custom UIView which has 2 UILabel (same width) and one UIImageView (known width of 44pt). Width sizes are given as an example, they can change but It is exact that UILabels should has same width and UIImage has a 44 point width. I want to add this view to UINavigationBar‘ titleView BUT […]

By Emre nder
Published
Categorised as ios, swift, uilabel, uiview

Is it possible to merge / intersect two UIViews rather than have them overlap?

Given two UIViews with borders that have UIPanGestureRecognizers attached to them: If I drag the UIView on the left over the UIView on the right, this is the usual behavior: Is it possible to get them to do the behavior below instead where they merge?: Looking for the simplest way possible to do this! Source: […]

By Ser Pounce
Published
Categorised as cocoa-touch, core-graphics, ios, uiview

iOS UIButtons in StackView aren’t being tapped

I have buttons inside a ButtonView class, to add some background and a label. These ButtonViews are added to a UIStackView which is a view in the PlayOverlay Class. PlayOverlay serves as a parent class to different kinds of overlays, in this example I have only included the BeginOverlay. BeginOverlay is presented by the PlaySecVC. […]

By Gabe Spound
Published
Categorised as ios, swift, uibutton, uiview, uiviewcontroller

Set Accessibility Identifier in UIView Extension

I worked on Mobile Test Automation.Previous, some elements don’t have any identifier but i need to import identifiers for testing issues. So I decide to write an extension to UIView, hereby that code will be affect all codes so I wont need to add one by one. How can I do ? Should I write […]

By Ali Ihsan URAL
Published
Categorised as swift, uiview, xcode

"Fold" a UIView in 3D along a line

If you have a UIView Imagine the view being full of text, animations, a cat photo, a gradient, or indeed any of the stuff a UIView can be full of. It’s easy to tilt it back to the left in 3D or back to the right .. (BTW I highly recommend the perfect OHCubeView ohcubeview […]

By Fattie
Published
Categorised as core-graphics, ios, skview, swift, uiview

Enormous bounty for any ideas! "Fold" a UIView in 3D along a line

If you have a UIView Imagine the view being full of text, animations, a cat photo, a gradient, or indeed any of the stuff a UIView can be full of. It’s easy to tilt it back to the left in 3D or back to the right .. (BTW I highly recommend the perfect OHCubeView ohcubeview […]

By Fattie
Published
Categorised as core-graphics, ios, skview, swift, uiview

How to add a UIPageController and UICollectionViewController to a UIViewController programatically

I already have a UIViewController made programmatically, and would like at the bottom to have a collection view with 4 cells, but I want to be able to swipe through different pages of the collection view to see different cells. I’m not sure where to begin with this wether to enable paging on the collection […]

By Jaqueline
Published
Categorised as swift, uicollectionview, uipageviewcontroller, uiview

iOS 13 beta UITableViewCell Child View Touch Selects Table View Cell

So I have a UITableView with a custom UITableViewCell which has its own custom child view. In iOS 12, above custom child view could be touched, it would not select the whole Table View Cell. In iOS 13 Beta, touching custom child view also highlights/selects the whole Table View Cell. final class myTableView: UITableViewController { […]

By Gizmodo
Published
Categorised as ios, uitableview, uitouch, uiview, xcode
1 2

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq