How to save the content of scrollview to photo library in ios - ios

I am new to ios development. I am trying to implement an ios application with UIScrollview.
The purpose of my scroll view is to arrange some images. I need to save the content of the scrollview to photo Library, attach it to email, etc.
Is it posible?
If it is possible, how can I do this?
If any body know please clear my doubt. Thanks in advance.

According to the comments, I understand that you want to save the whole content of a UIScrollView.
Firstly, whenever you use UIScrollView, you always have to set another UIView as its content. That UIView is exactly the whole content of your UIScrollView.
So the question becomes how to save a UIView as an image or attach it into email, well I find a few pages to you which is exactly what you want.
Save UIView's representation to file
http://www.icodeblog.com/2009/07/27/1188/
http://cocoatouch.blog138.fc2.com/blog-entry-57.html

Related

Multiple Photos in slideshow type display within viewController?

I am new to Xcode (started a few days ago).
I'm trying to find a way to get a few photos or videos in a display where the user can scroll or tap through as they desire. There will be multiple viewControllers each with a different set of photos.
Is there any existing UI type data types I can just drag and drop to make this work? Or is this out of range of the capabilities for someone not using code specifically.
I know Java, C, C++, MATLAB, etc. but never have toyed with Objective-C until now. Point being, I should be able to follow any logic you can throw at me, but I'm unfamiliar with the GUI and layout of Xcode as a whole.
This is what I currently have.
This is what I want. Perhaps with functionality to tap to full screen the image or swipe to go to another image. (This image was made with photosop. I don't actually have the picture file in Xcode because I don't know how)
SOLVED: Placed desired images in "Supporting files" content folder inside Xcode. This allowed me to select which photo I want displayed in which ImageView. To fix the proportionality issue where photos in Simulator are far too large, I simply added height and width constraints along with some other centering aspects and got the desired result.
Add UICollectionView in your view and set flow of collection view is horizontal make cell size that you want to keep.
Take a look at UICollectionViewController where you can display multiple cells with embedded views for your images, and consider segueing between them via a UINavigationController.
Edit: Now that you've added screenshots, I'd recommend using a UICollectionView embedded on your subclass of a UIViewController instead of a UICollectionViewController. This should give you more flexibility.

Can anyone suggest what to use to make the UI screen as Mention?

I have design the UI for the below screen as I am little bit confuse that what should have to use for the below screen. As you seen the on the screen below things:
1.Scrolling part of Images swap.
2.Again another Scrolling images Swap.
So here for the scrolling Images what should I use its Collection View for both or Pagecontrol for one and Collection view for other. Please suggest me.
Thanks and Appreciate for the help...
Use UITableView and in its cell use UICollectionCell so that you can scroll horizontally and vertically.
see Back image, this is how you can implemented output looked like.
As Tinu Dahiya pointed it correctly, You should use tableView and custom tableViewCells to achieve your UI design. This approach will also make your coding easy to handle dynamic contents which you might be fetching from server. For your reference you can directly use this control from cocoa controls. This control is ready made dish for you, you just have to implement your logic to achieve your functionality.

UIScrollview with section animation like UITableView

I am currently working with an app that would generate a report from the user. These reports would be displayed on a scroll view. I would like the scrollview to look like the photo feed of Instagram (please see Instagram app on iOS). This would be doable using UITableView since the section sticks up above while scrolling the row. I want to achieve the same effect using only UIScrollView. Is this doable? Please let me know your advice.
UIScrollView+TPKeyboardAvoidingAdditions
TPKeyboardAvoidingScrollView
TPKeyboardAvoidingScrollView
UIScrollView+TPKeyboardAvoidingAdditions
Download these custom classes from Github and follow the procedure given there !

Load More Data at the end of UIScrollView

I'd like to implement a feed in iOS 7 that is only pulling new data if it appears the user has a chance of viewing it. I know UITableView is a subclass of UIScrollView that does this well, but I can't get the cells to behave the way I'd like - I'd like it to look similar to facebook or twitter's newsfeed where you can reload by pulling down and load more by hitting the bottom.
I've seen other questions such as this but I'm looking for vertical scrolling only, with absolutely no horizontal movement. I'd like to use a method calling (for example) nextTenPostsFromIndex: that instantiates from zero, and applies to whatever index was the last on the screen if hitting the bottom.
My question: Is the best way to go about this to create a UIScrollView, place a subview inside of it, and programmatically space them on the available scrollview space, and apply the same drawing methods again with repopulated data if nextTenPostsFromIndex is called or checkForNewPosts (if pulling down from the top)? Would this be a reasonable way to implement Facebook's iOS7 newsfeed, or others like it?
Short answer: No. You really ought to use UITableView for things like this. You can use a custom cell or whatever you want. If it helps you, also know that since UITableView is a subclass of UIScrollView, you can do anything you would normally do with a scrollview, including assigning a delegate which acts based on the current position when scrolling.

IOS UIScrollView with MvvmCross

I am writing a "journal" app using MvvmCross for IOS. For the first View I wanted to have a scrollable list of books which is sourced from a List.
My current implementation is using the viewDidLoad method to dynamically resize the content size of the UIScrollView and add a number of SubViews for each of the books I want to display.
I'd prefer to data bind this but I can't work out the best way to implement a bindable scrollview. I'd be interested if anyone else has tried something like this before, and if there is a recommended way to do it?
I'm thinking of sub-classing UIScrollView with an ObservableCollection and using collectionchange notifications to re-populate the scrollview content as required.
Thanks for any guidance

Resources