I am going to create a timetable in xcode, and will put in my lessons etc. at school.
I want to have a static header, as well as a static left column (which will be a lot smaller than the other one). And how do I get this editable, so the user can make it personal?
In more detail:
It will be as a normal timetable. I will have a main menu, which will consist of buttons, and all the days of the week. e.g:
Monday (-----) this will then link to a new view controller where it is a left column (which is pretty tiny). In that left column the time of the lesson will be. In the right column, which is bigger, the lesson and the teacher you're having will be in column. I also want there to be an edit button, so the user of the timetable can put in their lessons and which time they will be.
Same with the other days.
I am following this Tutorial on how to make a horizontal table.
Thank you.
Related
I have an app that uses an SQLite database for user choices of backgrounds, icons, fonts, etc. I didn't create it, so, I have to use what I have, as, I have a rather large installed base, and am not inclined to switch to CoreData at this point. Don't want to piss off the current users. I also am not really up to speed on SQLite or CoreData.
I was using a custom grid view to display the backgrounds and icons. All of that has been changed to UICollectionView with a UICollectionViewCell.
In the SQL file, the base set is one table of 16 items. Really two (one for icons and the other for backgrounds). These are a part of the base app. In-app purchasing unlocks other "sets". These other sets are in a second table. Yes, separate tables for icons and backgrounds.
I have changed the ID numbers in the first table to start at 0. Previously they started at 1. I can now select and change both icons and backgrounds at will without issue and get the correctly selected item.
Except... when I select an item that is in the secondary icon or background table.
I have altered the ID numbers in the second table to start at one ID higher than the ending ID in the base set table.
But... the first item in the second table is being skipped. Selection of any item in the second table is showing the icon or background directly prior to the selected item. (ie. I select ID 21, I get ID 20 displayed). The first item in the secondary table is showing the last item in the secondary table.
So, my question... should the IDs in the second table start over at 0? Should they start at 1? Or is there another way to solve the skipping and incorrect selection?
Thanks in advance.
We're developing a web application using the Vaadin framework.
In this app I have an existing table with a range a columns. On a user action I want to remove some of the existing columns and add some other additional columns.
This proved quite easy, however, I want the added column to be placed as the first column in the table, on the out most left edge of the table, and I can't seem to find any support for this action. Every column that's added is by default placed as the last column, in the out most right of the table.
What you should do is to set your
table.setVisibleColumns(your sorted order of columns)
and also
table.setColumnReorderingAllowed(false)
it might be good to throw in a force of relaoding the datasource so
table.setContainerDataSource(table.getContainerDataSource());
I'm currently developing a crude, Blackberry app that keeps track of my spending and bank balance. The app will hold details of the items I have bought and how much they cost. The item price will then be subtracted from the main, overall bank balance. All item entries are made manually.
This is a mock-up of what I'm trying to achieve:
Above is the main menu. The top item is a banner that displays the bank balance. The other items are buttons.
The following is view for the items that have been added:
The table is text apart from the Remove Item field - they are buttons.
I'm looking for advice on how to implement both user interfaces (what classes, use a table or not?) I've been trying to implement a table to layout the buttons in the main screen and store the item list - I've not had much success! As I've said at the beginning, this is a crude application - I'm not looking to waste my time trying to implement any fancy GUI, just something functional.
Thanks.
I've been trying to implement a table to layout the buttons in the main screen
This is an overkill. Just use VerticalFieldManager as a buttons (use ButtonField for buttons) container.
.. store the item list
Check this: How to use Table View layout
Use LabelField for text cells.
Default behavior of a tableview is to highlight in blue a selected row.
I have an edit/delete (not sure on the wording yet) button that puts the table in edit mode, showing the red delete circles.
I'm unsure about how or even whether to let the user edit the text of a row. (Although until now "whether" hasn't even crossed my mind.)
Is it better to let the user add and delete items, or should I include an edit function?
If I should include an edit function, should it be triggered by the same edit function that makes the delete circles appear, or should editing be enabled by another button (limited space for buttons) or even a fancy gesture?
I would say limiting the user to add and delete but not edit would depend on your use case and what a row of your table represents. If it's a small piece of information (say a name) then it may be more sensible to just delete the wrong one and enter a new one rather than edit. If the row represents some larger object, then edit would probably be a good idea. What I would recommend to get that done, is pushing to some detail view controller when the row is tapped which would have it's own edit state and allows the user to change whatever they want with that object (like how the contacts app works).
This is more of a generalized approach question. I wanted to see if anyone could give me some pointers.
I'm making a rails app that will have a "featured item". This item will have a start date/time and an end date/time, and only one item will be within that time range (so, if today is within item X's range, item X is the current featured item).
For showing this in my View, would it be best just to show whichever one has a start date that's <= than today's date/time and end date that's >= than today's date/time, or is there a better way to approach it? Each item will have a picture and some text - nothing too fancy.
I'm looking forward to hearing your thoughts.
I would put the featured logic in your model. The time constraints you have sound good. It is good to put the featured logic in your model because you can then make a validation that ensures that no item has a featured time range that overlaps another one. Then in your view you could simply call something like Post.get_featured and that would get the current featured post.