and began to self-denial, every day to go back only to stick down the foot, no brushing, no code, every day brush know, continuous has four days, why is the current level, is not working hard ah, like others waste time ah,
Wake up in the morning must stay in bed for half an hour, night do not want to go to bed early, no hanging things, also installed force not to work, not work still blind do not write code
What to do?
Meditation, positive hints, bedtime meditation, writing plans in the morning, don't chat with Jade during the day,
Brush your teeth before you go to bed, wash your face, tap code, and knock on anything.
Look at the notes in the morning.
IOS6 set label font multiple colors
/**
* IOS6 set Label string multiple colors
*
* @param a string beginning with startstring
* @param colorstring Color changing string
* @param endstring End string
* @param label with color-changing text
*/
-(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];
}
--------------------------------------------------------------------------------------------------------------- ------------------------------------
/**
* Correct navigation bar offset
*/
-(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];
}
}
}
--------------------------------------------------------------------------------------------------------------- ------------------------------------
processing of Pop to a controller
JPG images are added in the Imagename method . JPG
------------------------------------------------------------------------------------------------
Case Brace to be inside new controller Alloc init
--------------------------------------------------------------------------------
Slide cannot be returned , because you write the back button , you can swipe back with the system
--------------------------------------------------------------------------------
Environment is not , because the agent is configured , remove the agent , you can access the network normally
------------------------------------------------------
-(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:[]; If there is a flow controller//Stream page trigger-go to stream page
[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];
}
}
The line postponed to 20th, 51 may go to Yunnan, the state is not good,