Create view similar to Facebook App in iOS - objective-c

I need to create a iOS app where the main screen is very similar to the Facebook iOS App. I am using a UITableView to show the different posts in the feed. My question is:
What is the best option to implement this? One option is to insert Textviews/Imageviews/labels to the table view cell and another option is to have one UIWebView in each table view cell.
I have to show a lot of pictures and texts, so maybe html will be easier.
Any experience?

If you have to show a lot of pictures and text, adding one complexity level (like HTML) is not gonna help.
I'd suggest to start researching on how you can speed that huge table up, and how to retrieve the content you want to display on each cell. For instance, you could use a parallel thread that would retrieve the content in the background as you scroll down and would store it in a cache so it doesn't have to be done several times. RestKit or (depending on your specific needs) AFNetworking are surely of some help in your case.
Also, have a look to this article (a bit old, but still interesting!) on how improve your scrolling speed: Fast scrolling (and link to github example project)

Related

iOS Swift - Dynamic Storyboard

I am currently developing a new iOS app which is basically a decision tree app. All the data comes from an XML file (list of questions and logic path depending on answers). The XML reading is not a problem.
I know I could develop this by hardcoding everything in the storyboard, but I don't find this efficient. Design-wise, I don't know where to start to sort of build the storyboard dynamically. What stops me is that, based on what the user answers, some paths have different number of levels (or questions); so different storyboard screens.
Any help would be much appreciated!
You may want to build your views "manually" from code.

iOS7 App Switcher-style Parallax?

I'm trying to create a navigation system similar to the iOS 7 native app switcher - in that I have a set of images along the bottom and a set of views above them, which scroll together, but at different rates.
I understand from a little digging that I need to implement a parallax scrolling effect, but what would be the best way to handle this? Should I set up two UIScrollView instances wide enough for the correct number of images/views, then set the contentOffset on one when I scroll the other? Is there a better way to ensure they stay in sync?
Apologies that this is something of a vague question, but specifically I'd like to know if there is a preferred means of implementing parallax while keeping the content in the two portions in sync in terms of both hitting the centre of the display at the same time, etc.

Dynamically changing content of UIScrollView

I'm trying to create a menu for a local multi-player game that dynamically updates when peers become available on the network.
The interface I want to implement is a UIScrollView, where each page displays information about a peer. Ideally, these pages are added and removed when a peer's availability changes.
I have looked through several tutorials using UIScrollView, but they all seem to pull page information from a plist or pre-loaded array.
What I want must be possible; weather app behaves in a similar manner, dynamically adding or deleting location pages. I'm not sure where to turn for further help, though. How do I dynamically update my scroll view's contents as outside events occur?
I decided to go with UICollectionView instead, it seems to provide a better method of implementation for what I'm trying to accomplish. Thanks!
Have a look at this Ray Wenderlich Tutorial.
I've used it as a basis for doing a paged scroll and the mechanism is simple enough to extend to whatever dynamic scheme you would like.
You can check this site for Multiple Tutorials & examples for UIScrollview. The link:
is Here..
I am sure, you'll able to find some good code for your need. Hope it works for you.

Recreate the BookCase in iBooks

I just wanted to know how you could implement a bookcase, like in iBooks, into your iPhone app.
I presume you would need to use a UIScrollView, but then I read somewhere that you need to use a UITableView. Which is it?!
You'd use code that others have already written, such as AQGridView.
I'm not sure if there's a better way, but you could create multiple small views or images (these would represent each book) then add these small views/images to the subview of a larger view in a linear format (leaving a space between each element). Then just set the background of your larger view as an image of a bookcase. Sorry I don't know of a better way.
And for the above solution I would use a UIScrollView.
You can implement it anyway you like, but it seems to me that a UITableView would be the easiest (which will scroll anyway). All of the magic will happen in your UITableViewDataSource, which is where you will decide what books are placed on what row.
Once you have decided which books to display you will have create a custom tableview cell that draws the appropriate objects.
To be honest, while not too difficult of a task, it will take a lot of effort to get looking right. If you are not comfortable with custom drawing then be prepared to spend time learning about the various image/graphic APIs.

Library for displaying image sets on an iPad

I'm looking for some cool libraries out there to display a bunch of images in my iPad application.
I think they are already out there, and I don't have to start from scratch, but I can't find some good ones.
Check out AQGridView as well.
Check out KTPhotoBrowser, I use it in a universal app, and it works pretty good.
Also, search Github : Photo Gallery for more open-source solutions.
See the answers to these questions on Stack Overflow:
How To Create A Gallery on iOS
float:left in objective-c
There are probably more questions about the same subject. Seek and you shall find.
I would simply create a web page with all the images, and then display it using UIWebView.
Did you want to do the coding yourself?
I found the Apple example "LazyTableImages" to be a useful and elegant way to display many images in a table view. It's important to a) keep the scrolling nice and smooth, and b) not freeze the user interface while downloading.
Have you tried using a UIImageView?