How to make space in the UIStepper [closed] - ios

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
i am new to swift iOS .. i spend huge time to figure. out but i failed here is my code :
var numberOfItemStepper : UIStepper = {
var view = UIStepper()
view.translatesAutoresizingMaskIntoConstraints = false
return view
}()
it is showing like
but i want like this image ..
note: i have no idea how can i do it please help me

Short answer: You don't, if using a UIStepper. UIStepper doesn't support the look you want. You will need to create your own custom control. It shouldn't be that hard, and would be a good exercise in creating a custom UIControl subclass. You'd add a plus button and a minus button, have those buttons invoke actions in your control, and then have your control invoke a valueChanged action in their target.
If you don't want to work that hard you might be able to find an open source custom control that does what you want "out of the box."

Related

How to make swift listView roulette animation [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
Good day! I am trying to implement such animation feature. Maybe you saw something like this. List view with cells that behave like roulette. I know how to resize cells in collection view while scrolling, but i need that some cells go under another.
Please help, if you know some tutorials or give a hint which methods should i use.
Image
You could do this yourself with a custom UICollectionViewLayout, but I find those very confusing.
I've used a framework called iCarousel in the past:
https://github.com/nicklockwood/iCarousel
It's very well done, although it's fairly old and it looks like it hasn't been maintained.

Swift alternative for android library [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
is there any swift alternate for the library (https://github.com/amarjain07/StickyScrollView) ?
i wanted to do same thing using tableview as my first cell will be collection view containing icarosel, second view will be fixed on top and then other cells of tableview will scroll inside to it.
Why you want to use a custom library when the UITableView has built-in support for it. The section header view can be made to stick like this.
Check out this tutorial which explains the same stuff with a simple example.

Popup UIPickerview for swift 3 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I'm wondering if anyone knows a Popup UIPickerView Control that looks like this exactly..
But instead of date picker I want it to be a Normal Picker. I have searched Cocoapods and Github and I always get Date pickers. And when I found a Popup Picker it was using Swift 1 and it was not updated.
So There must be something. I dont think that iOS users always have to implement the popup by them selfs everytime they need one for a view.
Please note that I am asking for this control for Swift 3
I think that you can create yourself.
Use a normal picker embedded in a classic UIView (with round corner) and bottom of this view you can add 2 button (cancel, done) and a label for the title.
In any case always try to consider the user experience not exactly the best...

How do I get the three line menu option in iOS? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I have seen the button on Android apps and I was curious if such a feature is available on iOS? I've thought about using a split view controller and then trying to trigger the detail via that button, but I am not sure how I would go about that. In short, I don't know how I would get the detail view controller to slide through the master. Click here to see what I mean
Any help is greatly appreciated. Thanks!
You need to add yourself, it's not native option for developer, it's called Hamburger Menu :)
Add your button in view with image you wished menu image. That's it. If you want menu library I recommend to use LGSideMenuController

How I can achieve this design using UITableView [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Hi,
Can anybody have any sample code to create this view using UITableView in iOS.
Please help me out.
I would use a UICollectionView as it is more flexible and allows you to customise almost every part of it and also how the cells are arranged etc. To create the timetable/calendar layout you will need to create a custom FlowLayout.
There are libraries that do this exactly for you. This one, with some tweaking for your design, creates a calendar style collectionView :
https://github.com/erichoracek/MSCollectionViewCalendarLayout
Hope this gives you a start.

Resources