上線延期到20號,五一可能去雲南,狀態不好,

來源:互聯網
上載者:User

標籤:

又開始自我否定了,每天回去只有泡腳堅持下來了,沒刷牙,沒敲代碼,天天刷知乎,連續有四天了,為啥是現在的水平,就是自己不努力啊,跟別人一樣浪費時間啊,

早晨醒來一定要賴床半小時,晚上又不想早睡,沒吊事,還裝逼不下班,不下班還瞎搞不寫代碼

怎麼辦?

冥想,積極暗示,睡前冥想,早上寫計劃,白天別跟玉玉聊天, 

睡前刷牙,洗臉,敲代碼,敲點啥都行,

早上地忒上看筆記.

Ios6設定label字型多種顏色

/**

 *  iOS6設定label字串多種顏色

 *

 *  @param startString 開始的一段字串

 *  @param colorString 變色字串

 *  @param endString   結束字串

 *  @param label       帶變色文字的label

 */

- (void)ios6ColorStartString:(NSString *)startString

                 colorString:(NSString *)colorString

                   endString:(NSString *)endString

                       label:(UILabel *)label{

    NSString *textStyle = @"<style color=#666666 font=14>%@</style><style font=14 color=#000000>%@</style><style font=14 color=#666666>%@</style>";

    textStyle = [NSString stringWithFormat:textStyle, startString, colorString,endString];

    [label hdf_setAttributedText:textStyle];

}

---------------------------------------------------------------------------------------------------------------------------------------------------

/**

 *  糾正導覽列位移

 */

- (void)makeNavTitleCentre {

    if (kIsIOS7OrLater) {

        NSArray *viewControllerArray = [self.navigationController viewControllers];

        long previousViewControllerIndex = [viewControllerArray indexOfObject:self] - 1;

        UIViewController *previous;

        if (previousViewControllerIndex >= 0) {

            previous = [viewControllerArray objectAtIndex:previousViewControllerIndex];

            previous.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc]

                                                         initWithTitle:@""

                                                         style:UIBarButtonItemStylePlain

                                                         target:self

                                                         action:nil];

        }

    }

}

---------------------------------------------------------------------------------------------------------------------------------------------------

pop到某個控制器的處理

 

JPG圖片在imageName方法中要添加.JPG

 

------------------------------------------------------------------------------------------------

case加大括弧 才能在裡面new控制器  Alloc init

 

--------------------------------------------------------------------------------

滑動不能返回,因為自己寫了 返回按鈕, 用系統的就能滑動返回

--------------------------------------------------------------------------------

環境不行,因為配置了代理,去掉代理,就能正常訪問網路了

------------------------------------------------------

-(void)finishButtonClick {

    NSMutableArray * vcs = [[NSMutableArray alloc] init];

    NSInteger num = [self.navigationController.viewControllers count]-1;

    for (NSInteger i  = num; i>=0; i--  ) {

        UIViewController *vc = self.navigationController.viewControllers[i];

        if ([vc isKindOfClass:[FlowViewController class]]) {

            [(FlowViewController *)vc refreshCaseInfo];

            //        vc isKindOfClass:[]; // 如果有流量控制器 // 流頁面觸發-去流頁面

            [self.navigationController popToViewController:vc animated:YES];

            return;

        }else if([vc isKindOfClass:[WorkSpaceViewController class]]){

            NSMutableArray *controllers = [NSMutableArray arrayWithArray:self.navigationController.viewControllers];

            [controllers removeObjectsInArray:vcs];

            HDFPrescriptionListViewController *listVC = [HDFPrescriptionListViewController new];

            [controllers addObject:listVC];

            listVC.hidesBottomBarWhenPushed = YES;

            [self.navigationController setViewControllers:controllers animated:YES];

            return;

        }

        else if([vc isKindOfClass:[HDFPrescriptionViewController class]]){

            [self.navigationController popToViewController:vc animated:YES];

            return;

        }

 

        [vcs addObject:vc];

 

    }

}

上線延期到20號,五一可能去雲南,狀態不好,

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.