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.
Related
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.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm currently developing an iOS app for my company and I'm really new to app development. I have a styling guideline from our companys' art agency.
Here is an example of what I'm trying to accomplish.
As you can see on the pictures' bottom there a some "stacked" / "overlapped" panels (where the arrow is pointing at) The first one should have a title and content - the other two just an title. There should be no functionality (just by touching on them as a whole, to navigate to the detail view) - but I have no clue for realizing this.
I had a look at UIStackView but im not sure if this is the right control for doing this.
Is there a control for doing this, or do i have to place those views manually?
If you truly don't need any other functionality other than tapping on them you're going to have to layout three UIViews yourself like you see in the picture.
It looks like the top one is a UIView with room for a title Label, a time label (maybe?), and a detail Label. So start with a UIView, create your labels, and add them in one by one to the top view, taking care to set AutoLayout up correctly so the views are aligned like you see.
I would reccommend creating the back UIView first, then adding it, create the middle one, add it, then create the last one and add it. This way they will automatically be setup in the correct order "depth" wise
Edit: As you said your new, let met me add one more tip on how to implement this - I would put the layout of the three UIViews and text into a separate UIView subclass. Then, you can simply instantiate an instance of that UIView subclass and place it where you need in your layout like you would any other type of view or control.
Basically, by making your own subclasss, you create your own control that you were looking for originally.
This question already has answers here:
UICollectionView remove section breaks with UICollectionViewFlowLayout
(2 answers)
Closed 5 years ago.
I'm using a flow layout on uicollectionview. It all looks great except it seems to start another section on another line. This seems like a sensible default but how do I override this and make the sections flow seamlessly on the same line as if no new section began?
Thanks!
There is a library I found which has this as one of its features
RDHCollectionViewGridLayout
https://github.com/rhodgkins/RDHCollectionViewGridLayout
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
What UI element should I use for a background image in an iOS application? The image is quite small (98*51) and I'll need to put a small label and two buttons on top of it. I tried both using a label (but can't find where to change the dimension and I wasn't able to change it to the correct one using only the mouse) and an UIImageView. Any suggestions?
If you are using interface builder, there should be no problem using a UIImageView with the appropriate dimensions, then placing the label and buttons on top of it. You can access the size of any of the elements from the size inspector in the right panel (the icon looks like a little ruler).
Both ways that you tried should work. Your first approach sounds simpler to implement, but your second approach is more flexible.
Using your first approach, you can place the image behind the label using this the technique described in this answer, setting the dimensions of the entire label by setting its label.frame = CGMakeRect(x, y, 98, 51).
The UIImageView route should be rather straightforward, too. Just remember to set label's background to transparent, as described in this answer.
I'm not sure I fully understand your question but if you want a tiled background image the simple way is to use this:
[self.view setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imagedNamed:#"myImage.png"]]];
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 :)