I would like to use the UIRefreshControl in my iPhone app to trigger a refresh of several UISwitch controls but it appears that the refresh control is meant to only work with a table view. Is this true? Any recommendations to get this functionality without a table?
There is an open source control that mimics the appearance of iOS6's UIRefreshControl. It also works with iOS older versions and controls other than UITableView:
https://github.com/Vortec4800/ODRefreshControl
Hope this helps.
Related
The native iOS Contacts App offers quite nice editing features:
A stretchy header both in view and edit mode.
Different row and header layout in view/edit mode
Animations between the two modes
How to recreate this design in my own app using UITableView?
I know the basics of UITableView designs using its different delegate and data source methods. But there are several features where I do not know how to implement them:
Question 1:
How to toggle between view and edit mode using a completely different layout?
The edit mode uses a completely different layout than the view mode: More / different rows and section. Some controls disappear, others come into view.
Of course I know that a table view can toggle between view/edit mode, but can the transition used by the contacts app really be implemented using UITableView methods only or does this need transition between to completely different views?
Question 2:
How to create the stretchy header with the image/logo which shrinks into the navigation bar?
I found several other topics and tutorials about the contatcs app layout. However, most of them are several years old and since a lot has changed in iOS the offered solution are pretty outdated.
I have created custom keyboard and custom system keyboard.Both are working But I need to implement UIPageControl in my custom keyboard part. If I choose the custom keyboard.(Using UIView) it is very hard to implement.
I need a solution for following areas.
My first issue is :
Custom keyboard is working with the app only. Once I install, if I exit my app , go other app developed my Custom system keyboard will show. Is there any way to configure within my app only.
I found some ideas from this link. Please suggest any idea.
The second issue is:
I have to implement the pagination
Without pagination, it is working.
It would be helpful if you provide any help.
If you want the keyboard to be app only you should be creating a custom keyboard via UIView only.
With regards to pagination in a UIView, couldn't you simply put a UIScrollView into the UIView and recreate horizontal pagination?
I have issue when I try to push view controller in willTransitionToPresentationStyle:. The view was blinking for a split second before it fully expanded. It might be a small glitch or bug since iOS 10 and Xcode 8 are still in beta. But when I manually requested to change presentation style to MSMessagesAppPresentationStyleExpanded by calling requestPresentationStyle: after I push view controller, it went to expand mode more smoothly. Does anyone have similar issue?
I have had similar problems with transitions in iMessage apps. I think this should improve considerably when iOS 10 and Xcode 8 come out of beta, but for now we have to deal with Xcode's bugs.
There's a few things I've done to make this look better. Inside my extension I have a method that checks the presentation style every time the view changes. This method manages two different UIs - one for MSMessagesAppPresentationStyleExpanded and one for MSMessagesAppPresentationStyleCompact. This method hides and shows specific views accordingly. In my compact UI I have a button that allows the user to expand the interface by clicking it (this is basically the same as clicking the up arrow at the bottom right of the screen).
I've noticed that if you let the user expand the messages app after the view has been loaded for a while the transitions are much smoother and less buggy. Not sure why this is the case, but you should give it a try. Also, I've found segues to be extremely buggy, so that's why I went with keeping everything on one view controller.
The modal dialog for adding iCloud accounts on iOS 7 is shown below. Is this type of dialog a standard iOS component of some kind? Specific elements of interest are the navigation bar and title on top that seem well integrated with the general iOS UI. I'm obviously looking to avoid reinventing the wheel for my own generic login dialog.
No, it's not a standard view that's part of the SDK, but it's easy enough to replicate using a grouped UITableView and a UITableViewCell subclass that contains a UILabel and UITextField for the Apple ID and Password cells.
AFAIK there is nothing built-in here. You need to create your own.
I am finishing an iPhone app for my company.
I am using Xcode and Xpages, as we are a Lotus Notes shop.
In Xcode I am using a UINavigation Controller with a Table View for selections. One selection is the Company Directory, which is an Xpage using the Xpages Mobile Controls (Single Page Application and then Application pages, etc.). This works fine EXCEPT for the navigation hand off between the Xcode parts of the app and Xpages. I end up with two sets of navigation controls, which is not good.
Any ideas how I can get around this?
Bryan
OK, I think I figured this out.
It really isn't anything to do with Xpages, but with using UIWebViews within iOS.
The problem was that on the first webView, I wanted to show the iOS Navigation, but in any subsequent ones I didn't want to - would just prefer to use the web navigation.
There is a delegation method in iOS Web views that allows you to show or hide the navigation bar. I added this delegate and just check to see which page I am on. If on the first one, I show the iOS Navigation, else I suppress.
This works great!