UIPageViewController: image under dots - ios

Please tell me how can i shove images under dots?

This SO page has a similar issue & solution.
In short: the standard UIPageControl object doesn't allow much customisation.

Related

Format UILabel with image and links

How can I add a string with link and image in a UIlabel using swift code.
Below is a sample what I needed:
Visit to the following link Terms and conditions 💼 for specific
instructions.
I need the Terms and conditions and the bag in red collar and remaining text in grey color. Tapping on red coloured text opens a link.
Anyone please help.
The short answer is, don't do that. A UILabel displays a string. That's what it's made to do. Adding images and links to a label is stretching it well beyond its intended purpose.
You can take a generic UIView and add subviews for your text and your image(s). Build your desired contents out of the elements you need.
I would suggest using a UITextView since that supports clickable links. Set it's editable flag to false and turn on link detection.
As per your problem described here. I have found a perfect solution, as per your requirement.
Here is the link to your solution : Link
You can try this and bridge it as it's written in Objective-C
KILabel
I solved it by adding an attributed text and user interaction to handle link tap. To add image NStextAttachment can be used. Write method to handle tap gesture for label using range.

UIImageView Following Another UIImageView Swift

If there is an answer which covers my question, please give me a link to it. Otherwise here is my question:
I am currently running Swift 2.0 (Xcode 7) Sprite Kit Game and would like to know wether it would be possible for a UIImageView to follow another UIImageView.
So when someone swipes in any direction, the first UIImageView will go that direction, and another will follow it like a snake and they all follow the one in front of them.
Edit: I would like to work like a snake. So I have many UIImageViews which represent body parts of the snake (basically small black dots) and whichever direction the head goes in which is controlled by UISwipeGestureRecogniser the others parts follow.
The most easy way is to use UIScrollView with pagingEnabled property enabled. At raywenderlich you can find small tutorial.
Much better way is to use UIPageViewController, example

How to implement Circular iCarosel?

I tried all the ways by setting the respective value's but i'm unable
get below one by using iCaurosel,or is there any controller which gives same functionality
? can you help me?
You should choose iCarousel type to wheel:
self.carousel.type = iCarouselTypeWheel;
but if you mean items margin, this is not possible:
https://github.com/nicklockwood/iCarousel/issues/306
Please check following sample. this is dynamic circles (views) you can add.:)
https://github.com/mpospese/CircleLayout
Happy coding.
You can achieve the same functionality by creating the custom circular UICollectionView layout.Please visit the following link to solve this.
http://developer.xamarin.com/guides/ios/user_interface/introduction_to_collection_views/
You can do this using carousel.type = iCarouselTypeWheel and then using the carousel:valueForOption:withDefault: delegate method to adjust circle radius, number of items shown, etc.
To position the circle off-center like that, use carousel.contentOffset.
You may find that the gesture handling is a bit weird though, because the pan gesture will still be linear even though the view appears circular.

How can this bar be done in iOS?

I really like this popup with the additional functions for the selected listitem under:
But have no idea how this is done. Does anyone know how to do it or has a guide or some keywords for me?
Here is another example:
You could achieve a similar effect by adding a UISegmentedControl with <1 alpha to the view when a cell is selected - hope this helps :)
The keywords to look out for are:
UIToolBar or UISegmentedControl - both using some custom drawing or appearance modifications. Well, you could just as well create an entire custom UIView containing a bunch of UIImageView's.
Additionaly, for that shadow have a look at CALayer's shadowOffset, shadowColor, shadowOpacity, etc. ... properties.

Is it possible to put both image and text in Segmentcontrol?

I am developing an iPad app. I want to show a UISegmentedControl with both image and text in each segment. Is it possible to do so?. Please clarify.
Thanks in advance.
Check this Answer for a Two-Line-SegmentControl. Just put UIImageViews instead of additional UILabels in the segments.

Resources