標籤:
又開始自我否定了,每天回去只有泡腳堅持下來了,沒刷牙,沒敲代碼,天天刷知乎,連續有四天了,為啥是現在的水平,就是自己不努力啊,跟別人一樣浪費時間啊,
早晨醒來一定要賴床半小時,晚上又不想早睡,沒吊事,還裝逼不下班,不下班還瞎搞不寫代碼
怎麼辦?
冥想,積極暗示,睡前冥想,早上寫計劃,白天別跟玉玉聊天,
睡前刷牙,洗臉,敲代碼,敲點啥都行,
早上地忒上看筆記.
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號,五一可能去雲南,狀態不好,