What technique does Facebook use to create its own news feed in the iPhone app?

I noticed a long time ago (when facebook updated its application after new profiles were released) that news feeds and other other parts of the application are not generated using typical table views and cells. I consider this for several reasons.

At first, they were able to update some design elements on the fly without having to update it from the app store. Another example - from time to time, when the application loads and takes longer than expected, I managed to scroll (up, down, left and right) and see strange shadows that look like coming from uiwebview (maybe you can get a screenshot right now) . And finally, from time to time, β€œcss” will not load immediately, and I will get this:

enter image description here

Does anyone have any idea what they are doing for this? I am very familiar with their Open20 base, but I don’t think there is anything special there that allows them to do this. It looks like they are generating HTML in a UIWebView, but I'm not quite sure.

What do you all think? The application that I create will be very useful when using the technology that they use. Updating and designing a table view and cells can be time consuming.

+6
source share
2 answers

Take a look at html-5 frameworks such as sencha and jquery to create a mobile-style touch interface on web pages. Facebook can use UIWebView with nested html-5 elements to provide a Touch / Mobile spreadsheet user interface, etc.

+2
source

Facbook version 4.0 is basically a login page and one large UIWebView on top of http://touch.facebook.com/ .

You can use your desktop browser to check the source code of the touch site if you are interested in the Facebook elements used in their touch version.

+1
source

Source: https://habr.com/ru/post/907674/


All Articles