how to make calendar that apple made as default in swift? - swift

I just wonder that in the calendar that apple made as default if you click day in month than view' space are split
this space change can be made by just segue??
am I have to make segue and then do the detail about height and width??
I want to get idea about this problem
you can see my project in https://github.com/shinhyogeun/Calendar.git

Related

How to modify new Date Picker in SwiftUI?

In the last update of SwiftUI, there we have got a couple of new DatePicker styles. I was trying to modify the default appearance of DatePicker. However could not find a way to do so.
This is the default view right now. I would like to resize the button and also would like to change the background colour (like making it completely transparent).
Could any one please suggest a proper way to do these modification?

SWIFT | How to get start time and end time from user?

i have an app and i have made a custom mode for the user ( similar to do not disturb mode ).
I want the user to be able to set the start time and end time of that mode manually ( either by picker or slider ) along with AM/PM mode or 24 hour format but it is not possible.
I thought i could achieve this with datepicker time mode but i do not want to present two textfield.
the counter version for this on android looks something like the image below. The UI is not important to me but only the functionality is.
Can anyone help me with this or point me in the right direction ?!
Any help is appreciated.
date picker method will need two fields as i mentioned with is a problem. also the problem with date picker is that it should not look like a textfield so i prefer a UIBUTTON so i can set the image for the button.

iPhone UIDatePicker blue highlight doesn't update on new picker row

I am using an UIDatePicker in my application. When the application loads up, the picker updates to todays date and the row is highlighted in Blue as shown:
However, when I change the values in the picker, the Blue highlight does not move along to the newly selected date, here is a screen shot (notice how the old values still hold the blue highlight) :
I am adding the UIDatePicker via IB and connected with IBOutlet UIDatePicker *picker
Does anyone know a resolution here?
Thanks everyone!
I don't know that you found a bug, as much as you found a "feature." The highlighting appears to be intended to allow your user to get back to today's date. If you really don't like the highlighting, you're probably best off implementing your own custom picker.

Alternatives for picker in iphone/iOS app?

I am showing a form the user fills in my iPhone app. One of the fields is a set of 2 or 3 dates from which the user has to pick one. Putting a picker, or bringing up a table view just for this takes up too much space, leaving no room for the other fields. Is there any simpler way to do this?
To do this you can put two or three arrowed label with text like "Select Date" upon click of it you can show one view that allow user to select the date; once selected you can back to the original view. You can do this for all three (or two) dates and get those date on form view.
I am giving you idea of how you can design apps; if you want code i can assist that too but from your question it seems you want design ideas.
You can go for your custom drop down/combo box, but their is no inbuilt functionality present for this.
Also following is mentioned in apple HIG guideline, you need to consider those as well-
(http://developer.apple.com/library/IOs/#documentation/UserExperience/Conceptual/MobileHIG/UIElementGuidelines/UIElementGuidelines.html)
Guidelines
Use a picker to make it easy for people to choose from a set of values. It’s often best to use a picker when people are familiar with the entire set of values. This is because many, if not most, of the values are hidden when the wheel is stationary. If you need to provide a large set of choices that aren’t well known to your users, a picker might not be the appropriate control.
Consider using a table view, instead of a picker, if you need to display a very large number of values. This is because the greater height of a table view makes scrolling faster.
Use the translucent selection bar to display contextual information, such as a unit of measurement. Do not display such labels above the picker or on the wheel itself.
On iPad, present a picker only within a popover. A picker is not suitable for the main screen.

iOS 4 - How to add table view to a tab bar application

I am new to iPhone programming and am having a really hard time trying to figure out how to add a table view to a tab bar application. There are not many tutorials on this for iOS SDK 4 and the Apple documentation is very light on details. Since I am new I would really like some tutorial that has screenshots (or at least clear instructions) when it comes to things being done in Interface Builder (like making connections between the objects and File Owner, etc), usually lot of tutorials/blogs gloss out these details.
What I am trying to do is create a tab bar based application with 3 tabs (this I am able to do). The first tab needs to display a table view with the header having 2 buttons (one on right and other on left, with the title in middle).The title is actually today's date, obtained from the phone. Clicking either of the header buttons should take you to another table and the title should be yesterday's date (if left button is clicked) and tomorrow's date if right button is clicked.
Can some one please suggest me a good tutorial for this. I am thoroughly confused by the Interface Builder (especially how to create connections).
The only page I remember frequenting on the past, is CocoaDevCentral.
Personally, I learnt how to use Xcode through video tutorials, so I recommend you to start searching there. Also, to help you with your search, always look for the full name of the objects involved, for example: instead of searching for "tableView", look for "UITableView", apple's notation is very particular and helps narrowing down the result.
Finally, ignore the nay-sayers about Interface Builder, you should give it a try, and see if it fits your style. For instance, I like being able to get a look at the overall design, as I usually help with the design.