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

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.

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.

ios charts don't register touching and never show markers

I have a list of charts in a tableview (each cell is a chart view) and I'm trying to add a custom marker (tried with balloonmarker) so that when the user taps on one of the data points a marker should pop up and show additional info about this point. My tableview cell is ChartViewDelegate and I implemented chartValueSelected method in it so that this thing could work but the problem is that most of the taps don't register at all. Basically the app doesn't recognize which view the user is tapping on, so I have to scroll up and down until it recognizes that I'm selecting a specific view. These cells take up the whole screen so I can't understand why it has such a hard time determining the view I'm tapping.

Loading Data in sameTableViewController based on button press Swift

I'm working on a sample iOS app and want to load (in a tableViewController) certain data based on the button the user presses at the top of the view. For example, when the user loads the page it will by default load data from "myPosts" but on the top of the view there will be two buttons "My Posts", "Not My Posts". If they then select the "Not My Posts" button then the tableview cells will be reloaded with the data from "notMyPosts". Anybody know how to do this?
So, the best solution here is to use a Segmented Control. Basically, you will have a controller for each TableView and a controller for the SegmentedControl.
This tutorial and this question gives a basic idea on the segmentedControl and how to set the basic controller for it. You will basically have a Container View with a view for each tableView you want to display and show/hide it based on the selected segment on the SegmentedControl.
This is how your storyboard will look like:
Just use two different datasources for your table, depending on which button the user selects.
So, when the user taps on a button set a variable to keep track of which button they tapped, and then reload your tableview.

Make a single view application to table view application

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.

News Feed drop-down filter menu in Facebook iOS App

The Problem
I am trying to replicate the drop-down style menu in the latest Facebook app.
At the top of the News Feed there is a "Most Recent" row:
Tapping this row expands the view, pushing the News Feed (UITableView) down:
Tapping the down indicator will expand the menu fully.
The Question
How is this menu implemented?
Given the behavior, I assume it is a custom view placed inside the tableHeaderView. But what custom view? A button, another tableview? What about the animation?
You wouldn't be able to do this as a table header. It'd need to be a section of the table that is initially 1 row and becomes multiple rows when you tap on it. Then all you would need to do to get an animation is to reload that section where animated=YES.

Resources