What grid/view does Instagram use for the feed? - objective-c

I'm in the process of emulating an instagram like application for iOS using Xcode and objective-c. I looked around but I could not figure out how Instagram implemented the following grid feed:
https://debsphuong.files.wordpress.com/2014/10/5-volleyball-hashtag-page.jpg
Any insights would be greatly appreciated it. Thank you

That is a UICollection view. when you tap on the button to turn that grid into a single column grid, the cells are resized to the width of the view and reloaded again.

Related

How to style an RSS feed similar to YouTube?

Hey everyone,
I'm looking to display multiple items in view of an iOS app. Typically I would use UITableView to accomplish this but now I'm looking for something a little fancier. The appearance that I hope to replicate is that of YouTube on iOS systems. A picture of this [youtube] is attached. I am particularly interested in how each video entry is styled. The box around the entry, the background. My guess as to how YouTube does this is through multiple UIViews or stylish UITableViewCell. Any class or framework recommendation would be of great assistance. I have spent hours searching google and stackoverflow to no avail.
Thanks in advance
To mimic the style of the YouTube app, I just subclassed UITableViewController with an initialized style of UITableViewStyleGrouped.

Make multiple NSScrollViews scroll at the same time

I am developing a Cocoa Application for Mac OSX. I intend to have multiple NSScrollViews and I'd like all of them to scroll at the same time if one of them is selected and scrolled.
I saw for UIScrollView there is a method "scrollViewDidScroll" that I could do this with an iPhone application.
Is there anything similar for NSScrollView or a way to go about doing this? Any help would be greatly appreciated.
Your solution is going to require that one of the scroll views will need to receive notifications that the other scroll view is being scrolled.
Apple actually provides some very nice documentation on Synchronizing Scroll Views, which also has some sample code snippets as part of it.

Display Graph in Titanium iOS

In my app, i need to display the status of the feedback by a Graph(chart) view.
Is webview is need?
I tried RGraph framework, which is showing errors for me, how to use this framework?
Are they're anyother ways their to achieve this?
Thanks in Advance!
Yes, this library utilizes a canvas, which you'll need a webview to display on. Some possibly helpful reading material on displaying charts:
Display Charts with Titanium

custom scrollbar in UIWebView iphone

My UIWebView has a huge data to display and the default scrollbar that comes with UIWebview takes lot of time to scroll.
Is it possible to implement a scrollbar on which user can tap and drag that were he wants.
Any hint in the right direction would be highly appreciated.
Waiting for your reply.
Thanks in advance
It depends on the type of the contents you are displaying in UIWebview.
Did you try make use of Javascript calls to scroll to certain ids within your html page?
Take a look at the wikipedia application or Wikipanion for iPhone for example... They have navigation screen so the user can jump to the section of their interest without the need to scroll the whole page.
hope that will help.

Objective-C - What's techniques/objects are being used

On my iPhone, when I go into the Settings app, I see "Airplane Mode", "Wi-Fi", "Notifications", etc. and I'm able to scroll through pages and pages of settings.
I'm new to objective-c and I'm trying to duplicate the functionality in my own app, but I don't know enough about the objects and techniques to know what to ask or what to look for. :)
With that in mind, can someone please explain what's going on with the settings app? What is this using? Is it a UITableView that allows me to scroll down the page? What control is being used to store the text "Airplane" mode? What is happening when I click on the ">" and see a new page?
Any tips are appreciated.
While nobody outside Apple can be 100% sure how they implement their apps, some reasonable guesses would be:
The main screen is a grouped UITableView. Each entry is a single cell.
The text and images in the cells are built using properties of UITableViewCell (e.g. the textLabel UILabel for the text "General"). Some of the more advanced items use custom cell views.
Each category view is another UIViewController, pushed onto the viewControllers stack of a UINavigationController.
The on/off switches are UISliders.
It is a TableView
Table View programming Guide
samplecode
These docs cover all you need