I appreciate the new v1.5.0.0 update. It looks great. Is there a way to make a Back style button now on a native toolbar? Sorry if I am missing something.
-Brent
Hi,
How can I add other buttons to the toolbar that is automatically created?
Hi,
Looks great! Thanks for that. Looking forward to this feature.
Do you think we will ever be able to put the iCL controls on FMX controls and vice versa?
-Brent
Hi,
Pieter Scheldeman2013-07-11 10:40:12
Ok thanks Pieter!
-Brent
Hallo Pieter,
I have checked the code of your Demo_8.zip and it works fine. However, if I set buttons to the left (ViewController.navigationItem.setLeftBarButtonItems(arr);) the automatically added back button of the NavigationController is no longer present. Do you know how to add buttons to the left and keep the back button working?
Hi,
There is a new property
But it's currently not implemented yet in our code.
You can modify it in FMX.TMSNativeUICore.pas
UINavigationControllerClass = interface(UIViewControllerClass)
['{144258EB-46EF-4CE3-8399-26B585EE5D51}']
end;
UINavigationController = interface(UIViewController)
['{BC0A62FD-B83A-4313-AABC-797C7BD64366}']
function delegate: Pointer; cdecl;
function initWithRootViewController(rootViewController: UIViewController): Pointer; cdecl;
function isNavigationBarHidden: Boolean; cdecl;
function isToolbarHidden: Boolean; cdecl;
function navigationBar: UINavigationBar; cdecl;
function popToRootViewControllerAnimated(animated: Boolean): NSArray; cdecl;
function popToViewController(viewController: UIViewController; animated: Boolean): NSArray; cdecl;
function popViewControllerAnimated(animated: Boolean): UIViewController; cdecl;
procedure pushViewController(viewController: UIViewController; animated: Boolean); cdecl;
procedure setDelegate(delegate: Pointer); cdecl;
procedure setNavigationBarHidden(navigationBarHidden: Boolean); cdecl; overload;
procedure setNavigationBarHidden(hidden: Boolean; animated: Boolean); cdecl; overload;
procedure setToolbarHidden(toolbarHidden: Boolean); cdecl; overload;
procedure setToolbarHidden(hidden: Boolean; animated: Boolean); cdecl; overload;
procedure setViewControllers(viewControllers: NSArray); cdecl; overload;
procedure setViewControllers(viewControllers: NSArray; animated: Boolean); cdecl; overload;
procedure setLeftItemsSupplementBackButton(leftItemsSupplementBackButton: Boolean); cdecl;
function leftItemsSupplementBackButton: Boolean; cdecl;
function toolbar: UIToolbar; cdecl;
function topViewController: UIViewController; cdecl;
function viewControllers: NSArray; cdecl;
function visibleViewController: UIViewController; cdecl;
end;
TUINavigationController = class(TOCGenericImport<UINavigationControllerClass, UINavigationController>) end;
and then access it the same way you use setLeftBarButtonItems and set it to true
Thank you, works like a charm!