Custom UIPickerView and UIDatePicker, flatter design [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.
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

Related

how banner view works? [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.
hello guys im just starting out at developing a ios application and came across iAd, admob and such networks . i was wondering how do they open a banner(i think thats a view) above the core applications.if you could point me in a right direction it would be of much help
Thanks in advance!
You are right it is a view subclass. It can be declared in your xib file or created programmatically. Apple even has a view specifically for iAd. You can "show" or "hide" the view based on if you have an ad to fill it. You can also do all sorts of animations to slide it in. There are several good tutorials out their that explain how to implement it. Ray Wenderlich is always a good source...
http://www.raywenderlich.com/1371/how-to-integrate-iad-into-your-iphone-app
You can even create a view that shows AdMob ads in place of the iAd view if it's not filled.

Multi-column Tableview in iPhone SDK [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.
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

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.

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

How to draw line out of drawrect function on 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 11 years ago.
need to draw line touchBegan, touchMove function instead of drawRect function on class derivated from UIView Subclass
Apple's documentation does an excellent job of introducing all the concepts and details you'll need. Please read first, and ask specific questions if you have trouble understanding something.
Subclass a UIView. Implement a drawRect in that custom subclass. Call setNeedsDisplay on a visible instance of that class. Use CG or Core Graphics commands to stroke a path. See Apple's Core Graphics reference documents on developer.apple.com.