在不改变当前视图的情况下实现导航的效果

时间:2015-08-30 08:17:39

标签: ios swift uiwebview storyboard ionic

我有一个UIWebView导入单页Web应用程序(例如AngularJS应用程序)。当我在webview中导航时,我想让用户感觉好像他在本机应用程序中导航一样。为此,我需要能够以编程方式更改导航栏(标题和后退按钮)并模仿应用程序内的页面转换。可以使用ionic来完成页面转换,velocity.js使用硬件加速和animate,但我不确定是否可以轻松制作导航标题的淡入和滑动效果。

有没有办法以编程方式 var salaryMonth = $('#emid').val(); var a = $('#emid').val(); var b = $('#myTable').dataTable({ "sAjaxSource": "/EventLog/GetData", "fnServerParams": function (aoData) { aoData.push({ "name": "salaryMonth", "value": a }); aoData.push({ "name": "salaryDay", "value": b }); }, "bServerSide": true, "fnDrawCallback": function () { }, "fnServerData": function (sSource, aoData, fnCallback) { $.ajax({ "type": "GET", "dataType": 'json', "contentType": "application/json; charset=utf-8", "url": sSource, "data": aoData, "success": function (data) { fnCallback(data); } }); }, "aoColumns": [ { "sTitle": "DateTime", "mData": "LogDate", "bSortable": true }, { "sTitle": "user", "mData": "sUserName", "bSortable": true }, { "sTitle": "user Name", "mData": "nUserID", "bSortable": true }, { "sTitle": "Device", "mData": "nReaderIdn", "bSortable": true }, { "sTitle": "Device Name", "mData": "ReaderName", "bSortable": true }, { "sTitle": "Event", "mData": "nEventIdn", "bSortable": true }, { "sTitle": "Event name", "mData": "EventDate", "bSortable": true }, { "sTitle": "T&A event", "mData": "nTNAEvent", "bSortable": true }, ] }); 导航栏,就好像你正在转移到另一个视图一样?

0 个答案:

没有答案