Text with multiple buttons - ios

Inside a tableview cell i want to display text like
Marc is now friends with Chris.
I want to use both Marc and Chris as buttons to navigate to their profile.
My first idea was to use NSAttributedString but i do not know if i can use the text as different buttons.
I´m not a complete newbie so navigation works, display of cells works everything works.
I am not asking for working code but i have no idea how to solve this...
Maybe someone could tell me wich class could help me.
Thanks in advance.

Use TTTAttributedLabel from github. Provides this capability out of the box using various attributes on NSAttributedString

Related

It is possible to create a floating button in tableview bottom?

In my application i have a UIViewController in that one tableview with two custom cells,i want to display a floating button in my tableview.it is possible,it is possible give me some suggestion r link.
Thank you in advance!
"That question is not related to my question.i have a two custom cells with different heights in one tableview."
Answer is
Here is the simple solution for adding a floating button to our application.
we can add a button through "storyboard" like this
after adding the button create action what do you want.it's working fine.
thank you.

Which UI element of iOS is this?

I am trying to incorporate a similar kind of view in an app. So, was wondering if its a tableview or something else?(see attached image) I am very new to learning swift and would greatly appreciate if someone could help me identify how this kind of structure can be made. Just the name of the element to be used would be enough. I will look up the details on Apple Docs.
It is a customized UIPickerView with two components. Just like the default Date Picker in iOS.
These questions should help you in styling the UIPickerView:
How can I change text font in picker in iOS 7?
Custom UIPickerView with Custom Background color
For that last question, please take a look at DShah' answer.
Addition to Nina's answer, below are some of the good custom Picker view controls which will be good to use in terms of performance and customizable.
http://www.cocoacontrols.com/platforms/ios/controls/cppickerview
http://www.cocoacontrols.com/platforms/ios/controls/afpickerview
http://www.cocoacontrols.com/platforms/ios/controls/v8horizontalpickerview (Horizontal PickerView)

Formated text/labels in UITextView/UITextField

Hello Im developing chat application. When I'm creating new group conversation, user is selecting in the tableview and I want to display selected contacts in textview above the tableview, exactly like in the Viber app.
But I dont know how to display text with background color in textview, also if u press backspace on the keyboard you don't delete just one letter but whole word. Can anybody please tell me how to do this?
Thank you.
Have a look at RMSTokenView, GCTagList or DWTagList. Seems to be exactly what you are looking for!
They both let you use custom fonts and gradients.

Implement auto-completion on iPad

Scenario: I have a list of medication (stored somewhere, let's say an NSArray).
There is a UITextField where a user can enter a medication to get more information about it (or whatever).
I want to suggest word completions while he is typing (but that is rather easy).
Where is the best place to show these suggestions? Since it's on the iPad i want it kinda like when you google and you get your suggestions right below the search bar. Is that possible on the iPad? A table that lays over the rest of the screen, placed below the text field? Like a pop up or something? I have never really used an iPad in my life before, therefore I don't know what the iOS way would be..
Edit: Something like this but connected to a textfield and not a button or whatever that thing is:
Edit: Or even better: Something like this but for iPad and not Android:
In my app I used a UITableView for displaying the suggestion.
I added the tableView above my UITextField. When there is no auto complete word found, I hide the tableView.
Please check my autocomplete implemetation.
Check out my control, MLPAutoCompleteTextField for iOS. It is a subclass of UITextField that does autocomplete.
The implementation is similar to what you are looking for in the second screenshot, and very customizable.

ios coverflow displaying many items like three instead of one at a time

I want to implementing coverflow like the one on the below image show below (instead of showing 1 at a time it can show many like 3 at a time). Can someone help me on the approach, or lead me to any tutorial will be appreciated
Thank you in advance
what i understood from your question is that you want to implement coverflow.
so u can achieve this using by adding UIScrollView to UItableView Cell, if you want only one row then just play with our few tableView delegate methods.
This tutorial help you to proceed. revert back if you need any help.
EDIT:
also take a look at this post: Check here

Resources