[allOrder.layersetBorderWidth:2];
CGColorSpaceRef colorSpaceRef =CGColorSpaceCreateDeviceRGB();
//CGColorRef color = CGColorCreate(colorSpaceRef, (CGFloat[]){1,0,0,1});
CGColorRef color =[UIColororangeColor].CGColor;
[allOrder.layersetBorderColor:color];
導航欄默認是半透明,讓view不要拓展到整個屏幕
self.edgesForExtendedLayout = UIRectEdgeNone;
這是導航欄變成灰色 處理下 self.navigationController.navigationBar.translucent = NO;
讓tableView或者scorllerView從導航欄一下看下
self.automaticallyAdjustsScrollViewInsets = YES;