Dynamic Data population in Table view - ios

I am very new to this IOS development. I am trying to get the Data dynamically from webservice to populate the Data in Table view so that it will be displayed like a Grid. Can Any one help me step by step or with an example so that I can proceed further. Main thing here is I an using storyboard and UINavigationController.

There are a lot of tutorials.
How to populate a tableView from the web
But maybe you need to begin for How to work with services
consuming REST Services
And your best friend here is the official documentation
Table View Programming Guide for iOS

You can have a look at this.
Here is a link to apple site that has a very good discussion about UITableView. Try to read it nicely it will help. Don't worry about JSON data if you know how UITableView works then you can find a way to display the JSON data in tableview. Here is a pretty good example how it works. :)

You should better check for some step by step tutorial and get a basic idea. Here is some links which you can start off:
Storyboard tutorial
Loading data from server in UITableview
AFNetworking crash course
Hope this helps! Happy Coding.

Related

Making UI elements programmatically in iOS using Xcode in Objective-C

I am trying to parse json data and convert it to form in iOS. I am successfully able to parse data and display it, however, i want to fix the UI and make it look more like an iOS form, perhaps using tableviews, etc.
How do I approach this? should I just use a tableviewController or use a tableview? (the fields are dynamically added, so I have no idea what type and how many fields I will have, until I make a call to the API and fetch the data from the json that I get)
Are there any easy to use libraries in iOS that I can use?
That's not how UI design works on iOS. For the specific example that you mentioned of a tableViewController getting fed from an API... You'll create a tableViewController and you will design a demo cell.
Then you will fetch the results from your API, parse it. And you will iterate over the results returned by the API, inside that iteration you will programatically create the table cells (thus ensuring that you are creating as many tables as you need).
Nevertheless this is a extremely vague question, and besides briefly explaining how this whole thing works on general terms, there is not much more I can do without you posting the code you have so far.
Allow me to refer you to this tutorial by NSCookBook that although old is gold when it comes to these things.
Regards,

Displaying Data From Firebase in iOS in 'Flashcards'

I am developing an iOS app that displays certain words from a Firebase database. The difference, however, is that I want to display the search results in a 'Flashcard' style. I have attached an image to give you an idea of what I am trying to do. I also want it to act as a button (i.e perform some actions when tapped). It would be great if you could help me give me an idea about how I could get this done. Thanks a lot]1
1.) Create a custom collection view. (Guide: https://medium.com/#michaelrojas_66889/how-to-make-a-custom-collection-view-cell-in-swift-6d5783ab7c1c)
2.) Get started with Firebase. (How to get started: https://firebase.google.com/docs/ios/setup)
3.) Setup everything you need for the collection view (Code)
4.) Retrieve values from Firebase. (https://firebase.google.com/docs/database/ios/read-and-write)
At least this is a start where you should begin. There is hundred of guides how to perform something like that, if you're googling the correct way. Once you get started, you should edit your post and ask more specific what you need help with and there will be a lot of people here who will help you out. But like someone said in the comments, it's not a code service. We're not building it for you. We're here to help you get in the right direction. (I know it's a pain in the beginning, and you will get confused a hundred of times. But that's the best way of learning.)
Good luck!

blade service injection not working Laravel 5.1

I am trying to inject a controller into my view(blade.php) but it is being outputted as is
#inject('problems', 'App\Http\Controllers\DonnerController')
this line is being printed on the screen, what's wrong here?
My file name is problems.blade.php
So, i found no solution to the problem. I decided to choose a different route since I wanted to share data to my view without any post request sent from page.
I used
View Composers
a better way to share data to views. I took help from laracasts and this tutorial to implement ViewComposers. I hope it may help any future beginner.

YouTube's search function in IOS

http://coolappsman.com/wp-content/uploads/2012/09/YouTube-App-Search.jpg
Hello, I am looking for some implementation tips for YouTube's search-function. I want to implement exactly the same thing but without the function "displaying tips based on the search-term".
With other words, I want a simpler version. How can I make the NavigatorBar disappear when the user clicks on the "search-button" and then make the NavigatorBar appear again after the user searched what they looked for? If you have seen the app its pretty clear what I am trying to explain.
Anyone know a good tutorial to implement something like this? What methods do this require? I am grateful for all tips. Thanx!
Jesper.
Concept you want to implement is quite hard to do, that is highly customized control. Instead of showing results in the same view, a new controller is pushed with results table.
However, you can start with UISearchDisplayController. See Apple's TableSearch example.

ios5 storyboard version of Facebook integration

Just curious if there is an existing storyboard version of Facebook integration around because I've been googling for about 2 days. So far, I can do authorization for my app and what I have in mind is to try posting a simple status message perhaps from my app to my Facebook newsfeed. Most of the demos / tutorials I've gone through use xib's though such as this. This one is a good tutorial, however I want a storyboard version for this. Tell me if this post is a dupe and kindly post that question so I can study it.
I know there were a lot here that know the idea of sharing :)
So any helpful links were very much appreciated, as it will, in a way, boost my learning experience as well as the others who are starting iOS development :)
Thanks!
If you wish to simply post a status update you should be able to use the same examples that are shown in nib files. However if you want to see a sample app that uses story boards you can take a look at this sample app:
https://github.com/fbsamples/ios-social-cafe
It uses story boards to set up the UI and perform facebook login. You can also check it out to see how to use the new UI pickers (friends, place) and how to do open graph actions.
If you have more specific details around how you want to post a status update, please provide them so I can clarify further.
Yes, there is a simple example of an iOS app using Storyboards (iOS5 and later): https://github.com/fbsamples/ios-social-cafe
Hopefully that's helpful and shows how to do a good authorization flow with Storyboarding.
Good luck.

Resources