Changing app homepage content daily - ios7

I am developing an iOS app for iPhone using Xcode of course, and need to have the facility to update the information on my initial view daily. This would consist of editing a logo for the day's date, and daily changing a block of text on the same page.
Another feature within the app would need to be to progressively add more and more content (adding further menus and categories of information available to the user on the interface).
I cannot seem to find anything to help me online so I would be HUGELY GRATEFUL for any help!
Cheers :)

Search for JSON and how to retrieve data from an online resource - that's what you want.
Here's a randon tutorial:
http://www.appcoda.com/fetch-parse-json-ios-programming-tutorial/

Related

Show a single thumbnail when posting on facebook

A little background info is that my team and I developed a website for a Real Estate Agency and I've been assigned the task of setting the image of the currently selected property into facebook's sharing feature.
The webpage for the property is dynamic as there are several listings, so what I've done is select the first image that is loaded on the page and set it to the og:image meta tag.
Now let's say I copy the URL and post it on Facebook, it'll show the correct thumbnail, HOWEVER, it'll also show multiple thumbnails from other listings.
All images on the website are over 200 x 200px and are within an aspect ratio of 3:1.
My question is, how do I tell Facebook to only take my initial image and not grab others while it's as it.
Is there perhaps a SelectSingleImage property that I can apply?
I've already spent more time searching for the answer to this issue than I would have liked, so thanks for any help provided, it's much appreciated.
One method I use sometimes is to recognize Facebook's server and simply provide it with different data. This way you can actually only have one image on the page (as far as Facebook knows).
I don't know anything about vb.net, but here is a simple code sample in PHP. All it does is perform a regular expression on the user agent of the request to match it against the string "facebook".
$isFacebook = false;
if(preg_match("/facebook/",strtolower($_SERVER["HTTP_USER_AGENT"]))) {
$isFacebook = true;
}
Facebook may very well change their user agent signature one day, but for now, I'm pretty sure you'll be safe but keep synced with the Developers Blog and the Roadmap.
It seems that Facebook saved those images in cache for some bizarre reason, but to resolve this issue all I had to do was enter the URL into Facebook's Linter tool which in turn cleared the cache on their server.

Xcode tag users in image

I want to make something similar to facebook tag mechanism. I will display an image of a building to the users and i want them to be able to tag themselves in which room they are at the moment. The location would be sent to a web server so all users can see other's location. Is that possible and how? Thanks in advance.
It is likely to be possible.
I can suggest the following solution: store the building photo/scheme AND rooms information on server.
In your App, you will display image (perhaps in ScrollView), there you will have just TapGestureRecognizer which will recognize the room, depending on coordinates of tap.
In case of this solution, you will have to manually store information about each tap-zone corresponding to a room. But that's the most likely case.

Displaying Webpages From RSS Feed in iOS Xcode

Currently, I have an RSS Feed Reader in a UITableView within a Navigation Control. I would like to click on the links and Open up a formatted page (containing all of the information from the website formatted for the iOS screen). I'm not sure if I should do this using the RSS data and a UITextView? I'm currently attempting to use UITextView in hopes that I can separate the information (title, author, body) without anything looking promising. I want to be able to move around the data and format it to my liking in the actual application itself. I read around and noted that you can include HTML and custom CSS. Would this be the way to go? I'm not quite sure how to tackle this. I want the page that opens up to be entirely scrollable (Like the IGN application or Slashgear application). Many apps for websites utilize this (and I am a bit new to this). How do they go about this? I also want to note, at some point I will like to cache the data so it may load what is already loaded without being connected to the internet. Does anyone have any ideas?
Edit:
Ok, I believe I found the correct path to go down from playing around and a lot of googling (nothing directly says what a decent way of doing this is). My particular way as of now is the route of a UIScrollView in general. Now the part I don't understand is how to divide up the long text into 'pages' for scrolling (and I am using the paging feature. This situation has led me into this question: How To Separate Strings For UIScrollView/UITextView based on the size of the frame
Ok, I believe I found the correct path to go down from playing around and a lot of googling (nothing directly says what a decent way of doing this is). My particular way as of now is the route of a UIScrollView in general. Now the part I don't understand is how to divide up the long text into 'pages' for scrolling (and I am using the paging feature. This situation has led me into this question: How To Separate Strings For UIScrollView/UITextView based on the size of the frame

RestKit and storing of data

I have a navigation controller where i have the list of appointments in a table view. I have an add button on the right side corner for the navigation controller. When the user clicks the add button a view will appear with the textfields and buttons. The problem is when ever the user (of the app) adds his appointments and clicks the add button it has to hit the server and store that data. I want to do that using RestKit. Can anybody tell me how to hit the server and how i can store the data.
Yes, Google can.
Here is the first result for the search 'restkit tutorial' :
http://mobile.tutsplus.com/tutorials/iphone/restkit_ios-sdk/
And, in case that one is a little out of date, here's the second result for the search 'restkit tutorial' :
http://mobile.tutsplus.com/tutorials/iphone/advanced-restkit-development_iphone-sdk/
The current documentation is only on github. Most other sources are outdated, thanks to RestKit's rapid development.
The wiki has a lot of good information, and you can find documentation that's always up-to-date in the docs directory.
I recently wrote a detailled overview of RestKit with many piece of code and I think it can help you to understand how it works and how to get things done.
http://blog.octo.com/en/overview-of-restkit-a-core-data-enabled-ios-macosx-framework-for-restful-apps/

Creating a image browser Boxee App

I am writing a Boxee App and I want to list all albums for a picasa account.
The problem I'm facing is that I have no idea of how to list albums and photos in the Boxee app.
The application itself should be fairly simple:
First a main screen where all your albums are listed, then when you click an album you see all your photos in a grid of say 4x5 photos
When you click a photo you go in to a view where one photo is displayed on the whole screen where back and forward lets users go back and forth in that gallery.
I have wrote a simple wrapper arround the gdata photos Python API which I was aiming to use so hopefully all the heavy lifting will be done by the gdata API.
Does anybody have some good links to example applications or tutorials to one or more of the features I want in the application?
Boxee uses an XML based approach for describing an application's interface. You'll need one XML for each screen of your application and you'll connect them together using the API.
You would build this XML screens using various controls defined by the XML API. Basically a control (a button, a list, a label, etc) is described as an XML node with attributes and child nodes. You can check a list of all the available controls here: http://developer.boxee.tv/UI_Controls
You can use the Python API to control various properties of the UI elements you coded in your XML files. For example you could fill a list with photos taken from a server, you could change the label on a button, load another screen and much more. Here are the Python API specs: http://developer.boxee.tv/Python_API
Make sure you read trough the Boxee dev pages and also remember that Boxee originated from the XBMC project so most of the documentation regarding XBMC skinning (http://wiki.xbmc.org/?title=Skinning_XBMC) also applies to Boxee.
Another thing that might help you is looking at other apps. Find an app that is somehow similar to what you want to do, find it in Boxee's app folder and peek at the code there.