Multi-column Tableview in iPhone SDK [closed] - iphone

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
In my app, I want to create a multi-column TableView like an Excel Sheet.
The Table View may also greater than the screen size, so I also want scroll it Horizontally.
How can I do this?

Pre iOS 6
You'll need to implement it yourself. This isn't available because a very large spreadsheet is difficult to navigate and you should probably rethink your presentation of the data.
Given that warning, you will need to implement this via a UIScrollView and managing attachment of your cells to the scrollView yourself. If you attach all the views in advance you will have choppy scrolling, so you want to attach and remove them as they come into view.
You can also check out the KKGridView project at Github. This may be exactly what you want.
iOS 6 UICollectionView
This class feels similar to UITableView but it supports grids and any custom layout you can dream up. Check out the videos Introducing Collection Views in the WWDC 2012 videos. It is truly amazing.

Better to choose UICollectioView or UISrollView instead of UITableView
The UICollectionView class manages an ordered collection of data items and presents them using customizable layouts.
About using UITableView,you can create custom UITableView cells by using Interface Builder and loading a custom nib. It's only vertically scrollable
You can see the details here

Related

Custom UIPickerView and UIDatePicker, flatter design [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I'm building a small iPhone iOS 6 app with a lot of custom design, and primarily using UIAppearance to apply custom styles.
In the app I would like to use a UIPickerView and a UIPicker but the style of these elements don't fit into my app, it looks horrible. Today I found a pick at dribble.
I think I need to create a custom UI-Element myself to achieve a look like this.
What would be a good approach to create a PickerView myself. I don't ask for a complete code, but for some ideas how to start coding.
If you dont mind the extra programming work you could look into creating a UIView subclass (which is all UIPickerView is after all), and implement the functionality you require from UIPickerView yourself with a custom implementation.
Depending on what you are after, you might not need to make your implementation as complex as UIPickerView, but I would study the class reference pages to see how the class works. I think it would be relatively straightforward to do. The graphical implementation will be the real challenge I would say, but since you are interested in a Flat UI the graphics can be kept minimalistic and it will be just a case of responding to the touch events in the appropriate manner.
If you don't want to get that involved you could always search to see if somebody has already created some classes for public use that implement a Flat UI look!
This is a customizable project
http://dev.doukasd.com/2011/04/infinite-scrolling-dial-control-for-ios/
also look into this post Custom UIPickerView with Custom Background color

Best way to make an APP in mode landscape and portrait [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
what is the best way to make an APP that works in landscape and portrait?
I have tried to try with autosizing but doesn't work well because i want to use all the width of the screen. Should i use two views? I have done the UIViewController using the Storyboard.
Thanks
A simple way to easily support both orientations is to use UITableViews and the standard UITableViewCell Styles.
Once you need a custom UITableViewCell you will have to configure the auto-layout constraints yourself. They are a great time saver once you get used to them.
Check out the
WWDC 2012 Introduction to Auto-Layout
Could you be a little more specific with your question? I'm not quite sure I understand what you are asking.
If you mean to ask how you can set the app to default to Landscape orientation, then just go to the main project, under "Targets" it should have your app name, and then you can see the options for "Supported Interface Orientations"
Using two views is easy at first but when you need to make adjustments, it becomes extremely difficult. One modification to one view needs to be modified on another view. Using auto-layout is the best way I believe. Yes it's extremely difficult to get a handle of it at first but once you get to used to auto-layout, it becomes such a breeze to make modifications.

Create tableview like Facebook timeline... iPhone app [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to create an app like Facebook timeline, so want to know that do anyone know how to create tableview like Facebook timeline, that it loads cell limited number of cell at once and automatically when we move to bottom of timeline?
I want to create lazy loading tableview that automatically load new cells when user goes to the bottom of tableview.
a quick terse answer will be:
Load the first few cells of the timeline when the app loads at first. Then when the user starts scrolling, load those cell numbers, depending on "how much" the user has scrolled (use a Gesture Recognizer to calculate this), so that you can load only those cells.
For example, if one cell's height is 40 points. If the user scrolls such that the screen shows from 200 points (i.e. the 'x' value at the top left corner of the screen), then load from cell number 6 (because the user has scrolled past 5 cells i.e. 200/40 = 5).
Hope this helps!

ImageView - Detecting Image Boundry [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have a tableView with some images in it. I would like to be able to drag these images around the screen. I have created a custom view which is the size of the visible screen that contains an onTouch method handler and also contains onDraw to allow me to drag an image. I would like some opinions on the best way to get the images from the table view and add them to the custom view when the action_down event is triggered (enabling the image to be dragged). Should I add the tableView to the custom view? Would I beable to detect the image boundry?
Thanks
Solved!
I created onTouchListener for each of the images which created an object that can be passed to the custom view when MotionEvent.ACTION_DOWN is fired. The custom view is then responsible for redrawing when MotionEvent.ACTION_MOVE is fired.

Moving UIView on screen in iphone [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
How can I move UIView on screen up and down like UITableView in iphone? Please explain
You need a scroll view. UIScrollView, here is a few tutorials on UIScrollViews:
Xcode 4 Tutorial UIScrollView
UIScrollView Class Reference Apple Documentation
Another Tutorial on UIScrollView
The UIScrollView class provides support for displaying content that is larger than the size of the application’s window. It enables users to scroll within that content by making swiping gestures, and to zoom in and back from portions of the content by making pinching gestures.
Your question is a bit ambiguous. If you are looking for exchanging between view positions...like moving one view above another or , say, moving a view that was at top to the bottom & the bottom one to the top, then you might want to look at
https://developer.apple.com/library/ios/#documentation/uikit/reference/uiview_class/UIView/UIView.html