12345678910111213141516171819202122232425262728293031323334 |
- {\rtf1\ansi\ansicpg936\cocoartf1504\cocoasubrtf810
- {\fonttbl\f0\fmodern\fcharset0 CourierNewPSMT;\f1\fnil\fcharset134 PingFangSC-Regular;}
- {\colortbl;\red255\green255\blue255;\red0\green0\blue255;\red0\green0\blue0;\red43\green131\blue159;
- \red0\green0\blue0;\red0\green128\blue0;}
- {\*\expandedcolortbl;;\csgenericrgb\c0\c0\c100000;\csgenericrgb\c0\c0\c114;\csgenericrgb\c16900\c51200\c62500;
- \csgenericrgb\c0\c0\c0;\csgenericrgb\c0\c50200\c0;}
- \margl1440\margr1440\vieww9000\viewh8400\viewkind0
- \deftab624
- \pard\tx624\pardeftab624\pardirnatural\partightenfactor0
- \f0\fs26 \cf2 \CocoaLigature0 var\cf3 sideViewController:\cf4 YRSideViewController\cf3 !\
- \
- \cf4 sideViewController\cf3 = \cf4 YRSideViewController\cf3 ()\
- \
- \cf4 sideViewController\cf3 .\cf4 rootViewController\cf3 = \cf4 navController\cf3 ;\
- \
- \
- \cf4 sideViewController\cf3 .\cf4 leftViewController\cf3 = \cf4 leftMenu\cf3 ;\
- \cf4 sideViewController\cf3 .\cf4 leftViewShowWidth\cf3 =\cf4 ScreenWidth\cf3 -\cf5 80\cf3 ;\
- \cf4 sideViewController\cf3 .\cf4 delegate\cf3 = \cf2 self\cf3 ;\
- \cf4 sideViewController\cf3 .\cf4 needSwipeShowMenu\cf3 =\cf2 true\cf3 ;\cf6 //
- \f1 \'c4\'ac\'c8\'cf\'bf\'aa\'c6\'f4\'b5\'c4\'bf\'c9\'bb\'ac\'b6\'af\'d5\'b9\'ca\'be
- \f0 \
- \cf3 \cf6 //
- \f1 \'b6\'af\'bb\'ad\'d0\'a7\'b9\'fb\'bf\'c9\'d2\'d4\'b1\'bb\'d7\'d4\'bc\'ba\'d7\'d4\'b6\'a8\'d2\'e5\'a3\'ac\'be\'df\'cc\'e5\'c7\'eb\'bf\'b4
- \f0 api\
- \cf3 \
- \cf6 // sideViewController.rootViewMoveBlock = \{(rootView,orginFrame,xoffset) -> Void in\
- \cf3 \cf6 // rootView?.frame=CGRect(x: xoffset, y: orginFrame.origin.y, width: orginFrame.size.width, height: orginFrame.size.height);\
- \cf3 \cf6 // \}\
- \cf3 \
- \
- \
- \cf4 window\cf3 ?.\cf4 rootViewController\cf3 = \cf4 sideViewController\cf3 ;}
|