Which Xcode template should I use? - xcode

I want to make an application which shows you the schedule for your school.
It should mainly display the current day and allow you to scroll left and right for switching to the day before or the day after the current selected day.
There should also be a settings view.
I'm new to making iOS apps, so which Xcode template should I use?
I think Page-Based Application seems to fit the most, however is this right?
I don't want the page curl transition, just a normal scrolling transition.

I typically start with a Tabbed Application or Master Detail view, but normally just a Tabbed Application and put in a tableview wrapped in a navigation controller. The tabs allow me to structure out different sections of the app and using table views gives you the nice slide in of new views.
Hope that makes sense.

Related

How to implement Sidebar for macOS in Swift?

I'm trying to implement a sidebar like the one used in the macOS Notes app. I've got the storyboard and sidebar working. But how can I implement the content window / detail view on the right? I want to show something based on the selection made in the sidebar. I tried doing it by hiding stuff in one view but it gets messy real quick. I'd rather switch views in the same window somehow. What is the commonly accepted way of doing this?

Tabview vs. GridLayout vs. DockLayout

I checked almost every demo application from the website, but nobody use tabview, only Gridlayout or docklayout for "tabbing" purposes. What is the benefit of the Gridlayout instead of tabview? Apart from the customize the background.
My point is to have a native tab look and feel on every page.
If I have page 1, page 2, page 3, all the page components should have the same tabview/GridLayout part, or I can move out the tabview section to an individual global component?
Apologize for the basic question.
Thanks!
If you are looking for pure native look and feel, you would go with a TabView. Another advantage with TabView is lazy loading, it loads the page only when required.
You may go with GridLayout when you want to keep the TabView look similar on both iOS and Android. iOS by default uses Tabs at bottom and Androids places them at top. iOS would give you a More tab when the number of tab exceeds the available space, on Android it will be scrollable. These are by native, so if you want a customised common look and feel, then you could use GridLayout. Or still you could use the TabView and replace the TabBar with your own custom view, which is a bit complicated.
If you want the tabs on every page, then you should probably have a Frame inside each tab and load your pages there. So the TabBar remains same on every page. The same could be achieved with GridLayout, it's all about choices. I personally like sticking with the native look and feel of platform.

PopOver button disappears when I switch page on UISplitView application

I am trying to make a application that uses the standard Split View Application in Xcode, i want to be able to have multiple detail view controllers, this is all set up and it switches between the different detail view controllers fine, although when it switches it doesn't show the popup view controller button in the top left hand corner when i switch to a new page
Many Thanks for any Help
Thomas
I have fund that the reason that this may occur is because the default Xcode uiSplitView application template sets the detail view as the split view delegate so you need to either make the master view to be the delegate or make the new detail view as a delegate also.

Use multiple WebBrowser tabs for 1 flex Application

I'm developing a flex application to view charts and statistic data about real-time stock price. The requirement is that 1 user can view multiple windows (or panel, or canvas) of multiple stock symbols at the same time.
I want to have 1 button, when I click at that button, a new panel will be pop up in a new WebBrowser tab. 1 user can open 5 or more panels like that in 5 more webbrowser tab to see 5 different stocks. And all 5 panels must be managed by the main Application. So that the Application can send stock price data to those 5 panels.
After days searching, I still cannot find out a way to do that, please suggest me something?
Thank you a lot,
Henry
If the requirement is that you use tabs in a browser, then you've got some fun ahead of you.
Only way I could see this working, is if the main application fired off URL Requests for a secondary app which it then communicated with through a LocalConnection.
There are a couple of easier ways if you relax the requirements a little. Using URL parameters means you could pass the stock you are looking to follow into each new instance of the application without needing LocalConnection.
Of course, you could just have a tabbed interface inside your Flex app, and not require new browser windows at all!
I would definitely not go about this way.
Creating multiple tabs is OK, but not when you need full control and integration over these parts.
I would create floating panels in the same application with a tabbed navigation or something of this sort.
Take a look at this image:
as you can see, the user is seeing one screen, but he has also 2 tabs (windows) at the bottom which he can expand or collapse.
the context is the same context, it is the same application.

Presenting multiple views sequentially - OS X

Following up on this question: Kiosk Applications - OS X programming - Multiple monitors
I'm an iPhone programmer just starting out with OS X programming, and I'd like to know how I can present multiple views sequentially.
What I basically need to do is - Have a welcome screen with a button called "Click here to continue". Once the user clicks that button, it needs to completely replace the view with another view presenting a table view of options that the user can choose from.
I actually need to create a couple more screens, but any help on how to get this basic setup can help me get started. The problem I'm having is almost all the mac application source code available on Apple's website seems to be oriented towards single window applications popping up multiple windows for any additional tasks.
Thanks,
Teja
I enjoyed using M3NavigationView from Martin Pilkington http://www.mcubedsw.com/dev
Basically it pushes and pops NSViewControllers on a stack and allows you to animate between them. I am doing this for a quick setup wizard on an app I am working on.
Make a tabless tab view, and put each of your views into one of the tab view items. In Interface Builder, each tab view item will have a view automatically, so you just need to put all of the subviews for that tab into that view.
You can then switch tabs from code—e.g., in response to the “Next” button.

Resources