UITableView segue to UITableView - uitableview

I am very new to this area of iPhone app development and have been looking through some links to understand it.
The requirement of my app is very similar to a phone contacts app.
I need to have a TableView on my home page with a few names on it. Whenever a name is clicked, it should open up another TableView with has further details (like mobile phone number, home phone number etc.).
I have been able to create the first TableView with the name of people but am unable to create the 2nd one and link it with the first one. I am using Storyboards to achieve this.
Also, if there is some free source code available for such an app, then that will be great!

you can add
[self performSegueWithIdentifier:#"segueName" sender:self];

Related

How to create a popup window in Xcode Swift?

I have an iOS info app. The main screen of the app consists of rows of icons. I want that after tap on certain icon card with information appears and background blurs. To close the card I need to swipe up or down. It is very similar to Instagram's imageviewer.
Please help me create that.
P.S. This is my first project so please keep this in mind when you going to describe the method.
It should look like this
The answer to your question is probably hidden beneath the layers of how you can segue between the scenes of a storyboard. First, you create a scene like this in the storyboard and use some third party libraries to present it as a 'pop-up'. It is not possible for you to do that natively as Apple has not added any segue style showing the scene like a pop-up on the iPhone screens (On iPad it's possible - check how Apple presents choose Wi-fi network in Settings). For that purpose, you can use BlurryModalSegue or CNPPopupController to perform such operations.
Thank You!

How does WhatsApp add their icon to their contacts tab and favourites tab in iPhone SDK

I have been working on app which needs phone contacts,i am able to get the name and phone numbers from the AddressBook.
But want to make tab like whats app has done,they open the default Address Book with icon of whats app in in front of contact number if the user is available on WhatsApp and also the status of the contact person.
How does the WhatsApp add icon to the number and add status to their contacts tab?
Also i am confused whether the contacts tab in WhatsApp using default UIAddressBookController or they made custom.
For more clarity please check the screenshot that i have added.
Kindly suggest me how can i achieve this in my app using the default ABPeoplePickerNavigationController.
I am pretty sure that this is a custom view controller that mimicks the original detail view of a contact. It looks similar but is still different. There is no "groups in common" or status or whatsoever in the standard detail view. Also, this is a standard system component that you can and should not override.
They will probably be using the API to access the Contacts and present them in their own view controllers.

iOS Airprint without displaying popover dialogue box

I am developing an app that needs to be able to print out name labels after a user finishes a registration process. It needs to do this without displaying a popover which is automatically created when using UIPrintInteractionController.
I know other apps have approaches where they print directly after the user touches a print button that is placed in the view controller. Fx the iPrint&Label app by Brother.
How can I create a similar button that allows the application to print automatically without displaying the popover dialogue box?
p.s The application doesn't have to be app store clean, the final application will only be installed on two specific iPads.
p.p.s this is my first entry on stackoverflow, I hope I'm not being to much of a newbie :-)
It is possible on iOS 8 and newer - use printToPrinter:
Docs here: https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIPrintInteractionController_Class/index.html#//apple_ref/doc/uid/TP40010141-CH1-SW34

iOS contacts programatically - do I need ABUnknownPersonViewController?

My iPad app collects some user data, including name, address, phone, etc. I have a button that allows the user to create a new contact from this collected data.
Right now, my code creates a contact record (ABRecordRef) and sets some values (ABRecordSetValue). All the sample code I've found for the next step creates an ABUnknownPersonViewController and presents it in the existing navigationController.
I can get this all to work, but I don't want to use the navigationController, however when I present this in a modal view I don't know how to detect when the user has finished adding the contact once the Contacts page is shown. As well, I don't know why there are so many screens involved--I would like them to just hit my button and voila; the data is added as a Contact.
So, some questions:
Do I need to present an ABUnknownPersonViewController or can I bypass all of that and just write the data out to the Address Book?
If not, can I at least bypass one of the two screens presented (after the ABUnknownPersonViewController screen, a Contacts screen with edit ability is presented)?
If I present the ABUnknownPersonViewController in a modal view can I detect when the Contacts page is finished so I can remove the view?
Thanks!
erdekhayser's comments put me on to the Apple docs which led me to this post here: How to add new contact to iOS Address Book?
This appears to be a good example of how to do this programatically.

Does Apple HIG enforce that tapping a cell in a UITableView should have the same action in Normal and Edit mode?

I have a UITableView showing a Weekly Planner.
In normal view if the user taps on a cell it opens the activity in a non-editable view. In the Edit mode however tapping a cell allows the user to replace an existing activity with another one from a list of activities. The Edit mode also has some extra "Add ..." cells that allow users to add activities from a list to their schedule.
While it seems to be intuitive from my experience while testing, I want to know if Apple does not allow this or recommends against this. I couldn't find a direct reference in HIG to something like this.
Has anyone ever faced any issue with something like this?
It's allowed to have different actions in edit and normal modes. In fact, some of Apple's apps do this. The Contacts app for instance will dial the tapped phone number in normal mode but edit it in edit mode. And there is a new Add button to add new numbers.

Resources