iPhone App - Using and Storing Contact Photos Best Practice - iphone

I was wondering if anyone had any best practices or advice for using contact photos in an app. Essentially I'm building an app that mimics the given contact app except my app will provide the contacts and their photos - this is so the user doesn't have to add contacts etc.
I can get my app to read an XML file for the contact information though I may change this to the JSON stuff served from a web server - right now the XML is within the app for testing purposes and I have to read up on JSON. This XML file simply holds the contact information and I show a contact photo that's in the support files for testing purposes too.
What would be a good way to server contact photos? Any best practices or advice? Should I store photos on the users phones and just reference them?

Hi for that case use Lazyloading
checkout this LazyloadingSample

Related

Creating Albums on iCloud and storing different photos in each album using cloudKit Swift 4

I am new to iOS Development and I am creating this project where I need to use CloudKit in order to save photos on iCloud. So basically my app will allow user to create different photo albums and inside every album adding photos of his/her choice, the catch is user will only be able to see this adding album page when a secret password is entered on a separate page.
Basically I need some guidance from you guys in order to achieve this task. After searching online I came to know that i have to use CloudKit in order to integrate iCloud in my app.
Basically i am looking for answers to this following questions :
After integrating CloudKit what am I suppose to do?
How can i create different folders on iCloud and how can I possibly give unique ids to them?
How can I upload photos to specific album?
If someone has reference code to such app,it will be of great help.
looking forward to get my doubts cleared.

Is it possible to make iPhone recognize a Contact's name belonging to a phone number on a web page?

I'm building a simple web page with contacts and their phone numbers.
When accessing the page from an iPhone the iPhone recognizes the number
and when the user touches the phone number a call is started.
When the call is finished and the user want to save the number in the
phone book (Make new Contact), I would like to have the name of the contact
pre filled into name field of phone book entry.
Is it possible to make iPhone recognize the name belonging to a phone number on the web page? Is there a meta or XML tag that let iPhone identify the name from the web page?
Best regards
Will
Unfortunately not. The best way to do this would be to serve up a vCard, but Safari doesn't support them for security reasons. The closest I've found is this question, but the closet solution there involves returning an ics (iCal) file with a vCard embedded inside it. This is not ideal.
So to summarise, there isn't a way to do this at present. This question has a lot of good information as well:
How to add a contact to the iPhone's Address Book from a Web Page?
If you are building your webpage with a view to embedding it inside a native app there are other options, but it sounds like that's not the case.

How to fetch data from website within the app?

I am developing an app for Lawyers to be used here in Brazil and one of the features of this app is to track the phase of the lawsuit as it develops through time.
It works like this: the user fill a form within the app with the info on the lawsuit and it is stored in a database. Whenever the user wants to know if the lawsuit has any new record, he'll push a button and will get the records ordered by date.
The website that the app will fetch is http://www.tjpb.jus.br the problem is that I donĀ“t know how to code in order to get the app access that site, input the lawsuit number and get the reply displayed on an UIWebView.
So could anyone help me, or just give me a guide on where to find a solution for this?
You will need to asynchronously go to server(via that url) and parse data, then show the responses in UIWebView. But as far as i know you will need a PUSH Server and clerify which data you will show from that site.. This is a great source to get started with app development, you can find video lectures in i-Tunes too
I'm not sure what you really want to do, but one scenario could be that you build a URL, like
http://www.tjpb.jus.br/?...&...
and load it in an UIWebView or if there is a webservice there you should use a lib like ASIHTTPRequest to manage your API calls.

How to go about building an iPhone app that accesses a website with a custom UI?

I don't quite know how to explain this but I want to build an app that can access a website like, for example, Facebook, but I don't actually want it to be Facebook's website in the sense that I want to design the UI. There is a couple of apps like this already in the app store, one being called "Facebook Touch HD". I have managed to get an app to access Facebook with UIWebView, but it just goes to Facebook's mobile website, obviously.
Look at the Facebook IOS SDK.
You probably want to fetch data from Facebook using its APIs. Facebook actually offers a library for iOS, so you may want to check it out.
In general, this applies to any site that offers an API. Usually you can use NSURLConnection to make requests to get the data you're interested in (check the specific API's documentation for details); then you have parse that data (most services output data in XML or JSON).

iphone + facebook, Data Store API

I'm doing a game that will connect to facebook
once conected the game uploads your score and shows you a table with the score of your friends.
I try to create an object to store data, but i couldn't do it.
then I read this on the Data Store API documentation:
Except for the User Preference API methods, all Data Store API methods have been disabled for desktop applications.
Is my game an desktop application?
if not, how can i do for store the points of the players in the facebook application?
I'm so sorry for mi english, I speak spanish.
If you want to store your game data, you have to create your own database and a webservice to connect your clients with that database. There's no way around it. But there're several helpful question on that topic on stackoverflow.
An alternative be would using online services like http://iphonelb.com/
Good Luck!