How to create a tableView into AlertView? [duplicate] - ios

This question already has answers here:
How to add a UITableView inside the UIAlertView in iPhone?
(5 answers)
Closed 5 years ago.
I have a problem, I don't know how to create a tableview into a AlertView like this image:

I think it's better to use a popover View Controller instead, but if you MUST do it you can check out this answer
hope this was helpful :)

You can use UIView instead of UIAlertView. It is easy to use.

Related

Name button on custom cell, show profile - swift [duplicate]

This question already has answers here:
Get button click inside UITableViewCell
(18 answers)
Closed 6 years ago.
I am having the hardest time trying to figure out, how I get a button working, on my custom cell? Since I cannot use performSegue in a custom cell? How can I do that, can anyone tell me how you would do it?
Hope you can :-)
Sorry for no code!
are you want to push on another controller when click on profile button ?
So you need to implement a delegate method for button action than you can push on another controller.

Making a single Prototype UITableCell for use with multiple controllers [duplicate]

This question already has answers here:
In a storyboard, how do I make a custom cell for use with multiple controllers?
(7 answers)
Closed 6 years ago.
This post explains why a single Storyboard prototype UITableCell cannot be used for multiple Views:
In a storyboard, how do I make a custom cell for use with multiple controllers?
However, that was for Objective-C in 2012. Is it still true now for Swift, and if not how is it achieved please? Thank you.
Yes it is still true. It's in a limitation of the application frameworks, not of the language. That said, it is possible to register a nib file that defines a cell and share it across multiple view controllers

How to create custom animation in iOS [duplicate]

This question already has answers here:
How can I animate the movement of a view or image along a curved path?
(4 answers)
Closed 9 years ago.
I want to create an animation using UIView's animateWithDuration, but I want to set a custom path rather than having it just go straight across. Is there any way that this can be accomplished without using multiple animations?
Thanks
I think the best way to solve this is to use core animation instead of basic UIView animation. It provides the flexibility you're looking for but is a bit more involved.
Here is a similar question which has been answered.
Here is another tutorial to do the same.

How can i create custom listField? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to customize a ListField in BlackBerry?
Hi Friend's i want to create custom list field.
and also want to add image over it.
Thanks in Advance
Yes, You can create custom list field by implementing ListFieldCallback and also by overriding the drawListrow Method. Then You can create your custom code inside of that method.

How to make uipicker view loop? [duplicate]

This question already has answers here:
How do you make an UIPickerView component wrap around?
(3 answers)
Closed 9 years ago.
In my app, i would like to make a uipickerview like the one in uidatepicker.
thing is, i cant get it to repeat the values. how would i do that?
The values come from an array, that should be repeated.
#Vladimir , it is a duplicate of How do you make an UIPickerView component wrap around?
There's a nice example over there... I'm sure no one will have the time to "spin" it all the way to MaxInteger :)

Resources