下面是内存溢出 jb51.cc 通过网络收集整理的代码片段。
内存溢出小编现在分享给大家,也给大家做个参考。
#define ApplicationDelegate ((BubblyAppDelegate *)[[UIApplication sharedApplication] delegate])#define UserDefaults [NSUserDefaults standardUserDefaults]#define SharedApplication [UIApplication sharedApplication]#define Bundle [NSBundle mainBundle]#define MainScreen [UIScreen mainScreen]#define ShowNetworkActivityIndicator() [UIApplication sharedApplication].networkActivityIndicatorVisible = YES#define HIDeNetworkActivityIndicator() [UIApplication sharedApplication].networkActivityIndicatorVisible = NO#define NetworkActivityIndicatorVisible(x) [UIApplication sharedApplication].networkActivityIndicatorVisible = x#define Navbar self.navigationController.navigationbar#define Tabbar self.tabbarController.tabbar#define NavbarHeight self.navigationController.navigationbar.bounds.size.height#define TabbarHeight self.tabbarController.tabbar.bounds.size.height#define ScreenRect [[UIScreen mainScreen] bounds]#define ScreenWIDth [[UIScreen mainScreen] bounds].size.wIDth#define ScreenHeight [[UIScreen mainScreen] bounds].size.height#define touchHeightDefault 44#define touchHeightSmall 32#define VIEwWIDth(v) v.frame.size.wIDth#define VIEwHeight(v) v.frame.size.height#define VIEwX(v) v.frame.origin.x#define VIEwY(v) v.frame.origin.y#define SelfVIEwHeight self.vIEw.bounds.size.height#define RectX(f) f.origin.x#define RectY(f) f.origin.y#define RectWIDth(f) f.size.wIDth#define RectHeight(f) f.size.height#define RectSetWIDth(f,w) CGRectMake(RectX(f),RectY(f),w,RectHeight(f))#define RectSetHeight(f,h) CGRectMake(RectX(f),RectWIDth(f),h)#define RectSetX(f,x) CGRectMake(x,RectHeight(f))#define RectSetY(f,y) CGRectMake(RectX(f),y,RectHeight(f))#define RectSetSize(f,h) CGRectMake(RectX(f),h)#define RectSetorigin(f,x,y) CGRectMake(x,RectHeight(f))#define Rect(x,h) CGRectMake(x,h)#define DATE_COMPONENTS NSYearCalendarUnit|NSMonthCalendarUnit|NSDayCalendarUnit#define TIME_COMPONENTS NSHourCalendarUnit|NSMinuteCalendarUnit|NSSecondCalendarUnit#define FlushPool(p) [p drain]; p = [[NSautoreleasePool alloc] init]#define RGB(r,g,b) [UIcolor colorWithRed:(r)/255.f green:(g)/255.f blue:(b)/255.f Alpha:1.f]#define RGBA(r,b,a) [UIcolor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 Alpha:a]#define StatusbarHeight [UIApplication sharedApplication].statusbarFrame.size.height#define DefaultToolbarHeight self.navigationController.navigationbar.frame.size.height
以上是内存溢出(jb51.cc)为你收集整理的全部代码内容,希望文章能够帮你解决所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
总结以上是内存溢出为你收集整理的常用宏定义iOS全部内容,希望文章能够帮你解决常用宏定义iOS所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)