Basically I'm trying to achieve the look apple has:
I want the user to be able to make a list and be able to scroll through them similarly to this. However, I want there to be a beginning/end to the list instead of a never ending loop.
This is exactly what I'm trying to do:
Any ideas on how to even get started with this?
Seems like a pickerview to me
http://codewithchris.com/uipickerview-example/
Related
I am using the MessageKit to create a real time chat in my Swift App. One issue I am getting is, I want my chat from the user to be on the left, and the chat from the person they are talking to, to be on the right. As of now this is flipped, and I am unsure what function that is being set in, or if this is just default and there isn't a way to change it. I see functions for changing the direction of the bubbles, and avatar location but nothing to quickly fix which side each new message goes on. Can someone help me figure out this issue. Here is what it currently looks like:
But instead I would want the second image to be orange and on the right side, and the orange text to be silver and on the left side. Thanks!
I feel like this should be a quick fix, I am just unsure which like function likely part of the deleagte that I can change, as it is my first time using this messageKit library.
Not sure if this will fix everything but on MessagesDataSource protocol there is isFromCurrentSender
just reverse the return from that and I believe that most of the components use that function for layout.
I have a ListView and I would like to provide users ability to delete any item in it without reloading. So I have made a piece of code that will set the deleted item's vislibility = "collapsed". This works like a charm in Android but not in iOS. It will leave a white space as the item is deleted. Only when I scroll all the way down or up and scroll back, the white space is gone.
Therefore I have tried another way that is to get the native iOS ListView, which is UITableView. And there is a function deleteRowsAtIndexPaths, so I have done like this:
myListView.ios.deleteRowsAtIndexPathsWithRowAnimation([NSIndexPath.indexPathForItemInSection(index, 1)], UITableViewRowAnimation.UITableViewRowAnimationLeft);
However, an error appears Assertion failure in -[UITableView _endCellAnimationsWithContext:]and I don't know what to do next. Actually, I don't really need the animation or fancy thing, I just expect it to work as Android. Thank you very much in advance.
A little code will help to understand your problem...
But from the initial looks, I think you need to wrap deleteRowsAtIndexPaths on beginsUpdate and endsUpdate methods call.
Refer this.
I am creating an app for people to be able to view ad get notifications from quotes the like. The quotes are separated into categories and the user can pick which categories of quotes they want to see. The changes they make will affect the bar button items. In Swift please
after reading your question, about the idea you have, I can tell you that it is very much possible. It's not to hard to do as long as you take your time and think about it. I won't give you any of the code and you don't seem to know what you are doing that well.
Don't worry though I am 100% sure that if you do some research about (Hint hint) the two parts that you want to come together I'm sure you will find the answer.
YES it is very do able!
Also don't ask for the code no one will give it to you! Try breaking it down and figuring it out yourself
Good luck have a good day!
I'm trying to make my app more accessible and so far the standard accessibility things like labels and hints are doing wonders. I'm hitting a problem however with dynamically updating content that's displayed in a UITableView.
Each row of the table updates every second or so, but if I try to create each cell's accessibilityLabel at this point then I find that there is a problem with the VoiceOver reading out the selected label keeps interrupting itself as the label contents changes so the system just starts reading the label content from the beginning again (actually an odd quirk shows the voice over sometimes works correctly for the first cell that was selected, but upon selecting a new cell this bug returns).
I've tried to see if there's anyway to try and understand whether VoiceOver is currently active but as far as I can see there is only a notification posted when VoiceOver finishes
UIAccessibilityAnnouncementDidFinishNotification
There's no equivalent notification for when VoiceOver begins. So there's no way for my TableViewController to know that VoiceOver is currently active and that it shouldn't update any accessibilityLabels.
I'd hoped I could at least detect that one of my TableView cells was the selected accessibilityElement using the
accessibilityElementIsFocused
method. However in all my testing I've not been able to see this reliably fire for a custom UITableViewCell.
I also tried implementing the getter for accessibilityLabel for my custom cell hoping this may work, but sadly the same behaviour occurs.
The only solution I'm left with is a user configurable frequency for dynamic content accessibility updates, say 5, 10, 20 seconds... which can block me updating my label until I know that the last changed content would have definitely been read out. Actually even this could be interrupted if the user chose to select a cell at say 8 seconds after the last update, 2 seconds in for a 10 second limit and the label would update causing the voice over to restart.
Has anyone any ideas of how best to handle this dynamic updating content? I'm presuming the tableview cells are complicating matters a little, but in general I just don't understand how apple expects you to handle dynamic content. All it needs to solve this is another notification
UIAccessibilityAnnouncementDidStartNotification
Or even better a method to enquire as to whether VoiceOver is currently active. But I don't seem to be able to find any!
Thanks for your time, would really appreciate any tips on this. Cheers!
You want to do two things. First you want to take advantage of the "Updates Frequently" trait. This should improve the behavior of the app when the content is on.
This should help a lot. Then you alse need to provide a way for user to halt the updating content. Independent of whether you do the above, this is an absolute requirement to satisfy WCag 2.0 guideline 2.2.2.
I have a simple ViewController with 5 labels each of which get populated with data dynamically on runtime as a result of regex parsing. I want to show any simple "Wait" animation, while the labels are getting their data, to tell users that processing is taking place.
I read a lot of SO solutions which more or less try to do something similar but I am nt able to get the simplest of working code.
To start with I dont need how much % of work is done i.e. no progress bar. Just Wait is enough. Later on may be i would want to add that logic bt I need a start right now!
This should have worked but it doesnt :(
Have you tried adding UIActivityIndicatorView??
Very nice loading indicator project ... https://github.com/jdg/MBProgressHUD
If you need something simple than previous answer about the UIActivityIndicator is correct