I am creating one book reader Application. In my application I am loading the pages as images from Web URL.When loading each images I like to show the loading percentage like below
Please suggest me some ideas
Here are few opensource controls that might help you
https://www.cocoacontrols.com/controls/koaprogressbar
https://www.cocoacontrols.com/controls/mcprogressbarview
https://www.cocoacontrols.com/controls/advprogressbar
I've made an open source progress view that is pretty customizable, and will be even more so in its upcoming 2.0 release. You can find it at lightdesign/LDProgressView. Please let me know if it suits your needs or how it might be changed to do so.
Take a look at NSURLConnectionDataDelegate (protocol of NSURLConnection).
https://developer.apple.com/library/mac/documentation/Foundation/Reference/NSURLConnectionDataDelegate_protocol/Reference/Reference.html#//apple_ref/occ/intf/NSURLConnectionDataDelegate
You need to implement the following method:
(NSInteger)totalBytesWritten totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite
In order to support this kind of behaviour.
Related
I would like to implement the same type of loading functionality and animation as this application: https://itunes.apple.com/in/app/aroundme/id290051590?mt=8
I have been trying to find information on how to do this but can't quite seem to find any good resources.
How can I accomplish this? Even just an idea of what to properly google search will be extremely helpful!
It's called ripple effect
There is demo you can find from below link
https://github.com/bharathlalgudinatarajan/LNBRippleEffect
Other option is you can find/implement last colum 3rd effect from below link.
https://github.com/gontovnik/DGActivityIndicatorView
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.
We are looking to implement User customizable backgrounds in our Rails 3 App. We want to add this facet to the settings page, and from there allow users to upload a JPEG or whatever image file extension it may be, and then make sure it is tiled to fit each Browser window.
How should we go about implementing something like this?
If including code from our repo would assist in gathering a solution, definitely let me know.
Thank you all for your valuable time.
You can make a get request from javascript for a rails resource that is said image and add this as the background-image() for the body. To get the non-public image, this should be useful: https://stackoverflow.com/a/8313398/1040358. To modify the css, this should be useful: https://stackoverflow.com/a/253710/1040358. Good luck! :)
I have read many links in this forum and the asp.net forum and searched Google. I have found loads of progress upload bars, but not one that suits my specific needs. So i was hoping someone could help. I need an upload progress bar that does not use, flash, php, html 5 or any codebehindfiles, was hoping to find a javascript pure upload progress bar. Has anyone used anything like this before?
Thanks
Marcel.
Valums Uploader. It uses pure Javascript (uploads file using Iframe)
I'm not sure if that's possible with all the stipulations you've added. The upload is a purely server side process. You can use javascript to poll the progress using ajax, but that still requires a server side code file.
The file uploader I always use is http://slfileupload.codeplex.com/
This allows you to do multiple files, have progress bars, and hook into events with javascript. It is silverlight, so that might rule it out for you.
The only other thing I can think of, with the limits you've imposed, is showing a 'working' gif, like a spinner or something. It's not true progress, but it'll show the user that something is happening.
Here's one that doesn't use anything except Javascript/HTML/CSS
http://aquantum-demo.appspot.com/file-upload
Similar to Facebook's UI, I am attempting at generating a preview image from an external linked website. So that when a user types in a url he is linking, the UI will by default, scan that site for an img and scrape a preview thumb.
Is there a specific name for this technique? Or can anyone point me in the direction of learning this?
Thanks so much!
Its called scraping. There is a library called scrAPI.
Here is a code example http://crunchlife.com/articles/2007/08/13/code-snippet-ruby-image-scraper
There are a couple different options when it comes to page scraping. Another one to check out would be nokogiri, http://nokogiri.org/. You can find tutorials on how to use it at http://nokogiri.org/tutorials.
Instead of grabbing an image from the site, why not grab the image of the entire page? You could make use of a free screenshot service like http://www.websnapr.com/ or http://www.thumbshots.com/ among others. In one application, I use that for my preview image, and use nokogiri to scrape the page title and description. Just an idea.