Ttnavigation Study Notes

Source: Internet
Author: User

P. P1 {margin: 0.0px 0.0px 0.0px; line-Height: 2020.px; Font: 14.0px consolas; color: # ff605d}
P. P2 {margin: 0.0px 0.0px 0.0px; line-Height: 2020.px; Font: 14.0px las; color: #101010}
P. P3 {margin: 0.0px 0.0px 172.16px 0.0px; line-Height: 23.0px; Font: 172.16px 'helvetica Neue light '}
Span. S1 {color: #101010}
Span. S2 {color: # b9bdb6}
Span. S3 {color: #0154a6}
Table. T1 {border-collapse: Collapse}
TD. TD1 {width: 368.0px; padding: 0.0px 0.0px 0.0px 5.0px}
TD. td2 {width: 392.0px; padding: 0.0px 0.0px 0.0px 5.0px}

[Map from: @ "TT: // menu/(initwithmenu :)/(page :)"

Tosharedviewcontroller: [menucontroller class];

Opening "TT: // menu/1/5" will call

[[Menucontroller alloc] initwithmenu: 1 page: 5]

The input parameters are automatically mapped to the Data Type of the method.

However, in the official example, only auto- ing enumeration and nsstring data types are provided. How can this problem be mapped?

Initialize a uiviewcontroller and Input Multiple object parameters.

P. P1 {margin: 0.0px 0.0px 0.0px 0.0px; Font: 11.0px Menlo; Min-Height: 13.0px}
P. P2 {margin: 0.0px 0.0px 0.0px 0.0px; Font: 11.0px Menlo}
P. P3 {margin: 0.0px 0.0px 0.0px 0.0px; Font: 11.0px Menlo; color: # 2e595d}
P. P4 {margin: 0.0px 0.0px 0.0px 0.0px; Font: 11.0px Menlo; color: # d62c24}
P. P5 {margin: 0.0px 0.0px 0.0px 0.0px; Font: 11.0px Menlo; color: # 40207c}
Span. S1 {color: #4b8186}
Span. S2 {color: # 2e595d}
Span. S3 {color: #743fa4}
Span. S4 {color: # 40207c}
Span. S5 {color: #000000}
Span. S6 {color: # d62c24}
Span. S7 {color: # c02d9d}

 

Ttnavigator * navigator = [ttnavigator navigator];

Navigator. Window = [[uiwindow alloc] initwithframe: [uiscreen mainscreen]. bounds];

Navigator. persistencemode = ttnavigationmodenone;

 

Tturlmap * map = navigator. urlmap;

[Map from: @ "TT: // testviewcontroller/(initwithname :)" toviewcontroller: [testviewcontroller class];

Nsarray * AR = [[nsarray alloc] initwithobjects: @ "1", nil] autorelease];

[Navigator openurlaction: [[tturlaction actionwithurlpath: @ "TT: // testviewcontroller/diyago"] applyquery: [nsdictionary dictionarywithobject: Ar forkey: @ "Ar"];

 

[Navigator restoreviewcontrollers];

 

He will look for the-(ID) initwithname :( nsstring *) name query :( nsdictionary *) array; function in testviewcontroller. Fixed.

P. P1 {margin: 0.0px 0.0px 0.0px 0.0px; Font: 11.0px Menlo}
Span. S1 {color: # c02d9d}
Span. S2 {color: #743fa4}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.