UIScrollView messaging app behaviour - ios

I've been wondering how apps like Facebook Messenger, Whatsapp or the Messages app on iOS itself work (from the UI perspective).
I assume they're using a UIScrollView and add UILabels at the bottom of view with the message and/or info of the message itself, giving a fixed space between labels, and so on...
Am I right or my approach is completely wrong?

In iOS6 and above, you have UICollectionView, which inherits from UIScrollView, but gives you tableview-like cell management without being restricted to one row. For example, both the iOS7 Messages app and the new Facebook Messenger use collection views to implement what you look for.
There are several open-source solution that implement a similar behavior, which you can take a look at for use or ideas. THSpringyCollectionView, JSMessagesViewController and others.

Related

Take screenshots programmatically of entire scrollable area of another app in iOS

Currently it is cumbersome for the user to repeatedly scroll and take a screenshot if they want to capture more than what can fit on the screen at a time.
I would like to implement functionality such that at the request of a user (e.g. via tapping a special button on a custom keyboard), screenshots of the entire scrollable area of the currently opened app are automatically taken and stitched together.
Is this possible? And if so, how?
To clarify, the application containing the scrollable area is a third party application over which I have no control, e.g. iMessage or Facebook.
Edit: I am aware of answers like this one and this one that are about taking screenshots within an app that I control. As far as I can tell, these are not applicable in my situation. Please correct me if I am wrong about this.
This is not possible. Each app is contained in a protected sandbox that no other apps have access to.
You could make a custom keyboard, but you still wouldn't have access to any of the views in the app that you don't control.

Does tvOS have any UIViewController subclasses I can use instead of replicating standard functionality?

I've started developing for tvOS recently, and discovered that while TVML isn't ideal for our use case, we'd still like to display a number of screens that display the same types of content as I've seen in existing Apple apps, and which I know can be created with TVML.
As an example, I want to display a page of terms, the same way that the Apple TV displays information as a scrollable page of text.
I could do this custom, where I place my own textView on a UIViewController, and setup the width and positioning myself. But it's scenarios like this, where I'm wondering if there's some already existing standard control for it, such as a UIViewController subclass already setup for displaying Terms? Is there a set of these I could be looking at?
UIAlertController should solve what you're looking for. You configure the text, buttons, and then present it.
More info in the docs:
https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIAlertController_class/

iOS 9 Swift 2: horizontally scrollable views? Facebook's "suggested friends/groups"

I am writing an iOS app in Swift 2 using Xcode 7.
I want to display a set of a user's trophies. For this, I am imagining a horizontally scrollable display as each trophy image is small, but users can have more trophies that fit across a screen.
You can see a Sketch example here: i.stack.imgur.com/VtpEc.png
I first thought that I could use a UIScrollableView, but I don't think this will work because user's are NOT supposed to be able to zoom into these trophies. BUT, if UIScrollView is the way to go, then how do I go about implementing it horizontally and without zoom? The most similar feature in an app that I have found is in Facebook's iOS app. Facebook uses these "horizontally scrollable views" for suggested friends/groups.
You can see what I am talking about in this screenshots: Facebook Horizontal Scroll
This feature also seems to be built in to Apple's iOS. When choosing which action to perform, users are presented with a "horizontally scrollable list" of apps to choose from.
See what I'm talking about here: built in iOS horizontal scroll
I would appreciate any help that anyone can offer! Thank you!
They're using a UICollectionView with an horizontal flow layout.
This more detailed answer might help you to figure out how to implement it: https://stackoverflow.com/a/19435898/5741377

Scroll UITableViewCell background like Spotify/Weather app

If you take a look at the iOS 7 Weather app on iPhone you will see that as you scroll, the background of the UITableViewCells scroll too(each independently of the rest). Recently, Spotify issued an iPad update that added the same feature(search for an artist on iPad, then look at their albums). I'm trying to figure out how it's done. I'm thinking it might tie in to how parallax is treated in iOS 7(motionEffects) but I'm at a loss. Any ideas?
I'm trying find same feature, and i create same question with your description of trouble and i find solution, see my question - myQuestion

iOS UITableView Facebook App Style

I've attached a screenshot of a view from the facebook app. I want to recreate the UI of the left column which looks and behaves like a UITableView.
Is this UITableViewStyleGrouped or UITableViewStylePlain. If its grouped, how have they reduced the white space between the section data and the next section header.
How have they expanded the UITableView cell to fit across the entire width of the tableview.
Or is this html using webviews and just behaves like a UITabelView?
Facebook has an open source library that they have used to develop their iOS app:
http://three20.info/
I believe you may find something here eventually that would allow you to do what Facebook app does.
Facebook uses the Three20 library for their iOS applications. ref
You can find it here: http://three20.info/
I don't know exactly what kind of table the one that you have in the picture is, but I'm pretty sure it's one of them: http://api.three20.info/annotated.php

Resources