Make a single view application to table view application - ios

I made a single view application. It's kind of an alarm app. And like the alarm app in the iPhone(which is basically provided in the iOS) if I tap the plus button, I want the application to make a cell in the table view, and when I tap the cell, I want the single view(which I have already made) to appear. How can I do this?

Some steps to move forward:
To add 1 cell when you tap + button:
https://developer.apple.com/library/ios/samplecode/TableMultiSelect/Introduction/Intro.html#//apple_ref/doc/uid/DTS40011189
To tap the cell -> separate view:
https://developer.apple.com/library/ios/samplecode/NavBar/Introduction/Intro.html#//apple_ref/doc/uid/DTS40007418
try to download and investigate the sample code from apple. hope it helps.

Related

Modify WatchKit Table View to prevent pushing interface out of view

I am developing a stopwatch app for Apple Watch similar to the one that is preinstalled on the Apple Watch by default. I want to have a lap table similar to the preinstalled one that can scroll but doesn't push the control buttons outside of the user's view. Right now after I lap enough times, the stopwatch controls no longer be become accessible to the user without scrolling down. Is there any way to make the WatchKit Table view scroll in place by turning the digital crown and display say 3 entries at once without pushing the rest of the UI below the screen?
Currently in watchKit the tableViews scroll all the way out of the screen if they don't fit in. What you can do is
1) have the fourth tableView cell as a disclosure indicatory like this "V" while hiding the cell prior to the recent 3 and when this is clicked load the rest of the cells and have an extra cell to display "^" when all the cells are display . Clicking this will hide them back to the recent 3.
2) Navigate from the fourth cell to a new Interfacce controller displaying all lap data.

How to use CoreData with two view controllers one of them has collection view

First of all, I am new in coding, so please be patient with me.
My app has two view controller, the first has UICollectionView and the second has UITextField.
I am trying to tap on one of these collection view cells and then it takes me to the second view controller, where I can type in the textView then save it into CoreData. And then when I go back and press on the same cell i get my saved text. Then when i change this text on the ui text view.. it saved automatically.
Can any one give me an example or put me in the right track
The essence of how that might be done is to implement the collectionview delegate and then determine which cell they clicked on, so that the next screen loads/and updates the correct data. After they click you would call the "segue" with some code. The segues are setup in Xcode's visual editor by control click and dragging a line to the second view. (It's weird, there are some great youtube videos out there) The data would be stored in an array. After you update the data, you could dismiss the second view and the collectionview behind it would be visible again.
I would check out chapter 4.5 of the free iBook "App Development with Swift". Chapters 4.5-4.8 would really get your rocking the right path. If that book is too complex then also look into "Intro to App Development with Swift"
I even have some videos to take you through the process, dunno if I have one for 4.5 but if you continue with it, I have one for 4.6.
https://www.youtube.com/watch?v=Q5u9SGhQoPY&t=2254s

Implementing custom callout button for "About"/ "Info"

Im extremely new to iOS and i have a requirement where in table view, each cell displays list of stores near by and also an info button at the end which shows the timings of the stores. Info accessory button like this and my requirement is to display callout alert as below on tap of that button.
Do I need to create custom view of small size and display that view every time when user taps on that? Please advice how to achieve this in Swift.

iOS News App like Animation

How can I achieve the following animation?
https://ibb.co/mZgAGF
Consider the list of cells in UITableView/UICollectionView.When the user taps on an UITableViewCell/UICollectionViewCell, the detail page animates/opens from the selected cell and when we go back, the detail view goes inside the selected cell.
Please let me even if we've any existing libraries.
Thanks in advance.

How to slide tableCell to show hidden interaction in UIAutomation iOS 7

I am trying to figure out how to get a hidden button to appear on table cell. Similar to if you were looking at the SMS app on iPhone. The threads are in table cells and if you touch and drag across that cell, a button to delete that thread appears. The functionality in my application is similar.
Now I would like to automate the testing of being able to delete a thread with this method.
target.frontMostApp().mainWindow().scrollViews()[0].tableViews()[0].visibleCells()[0].dragInsideWithOptions({startOffset:{x:0.9, y:0.5}, endOffset:{x:0.0, y:0.5}, duration: 1.5});
The above currently seems to start the intended interaction, but then the UI snaps back as if the action did not happen.
If you run this manually, does the cell stays on one side or does it always snaps back? The reason I ask is because I have a similar UI but I'm able to slide the cell all the way to one side and then tap on the buttons behind it. If you only drag the cell half way, then it will ignore the taps.

Resources