/*! * `1`:测试环境 * `0`:生产环境 */ #ifdef DEBUG #define TEST 0 #else #define TEST 0 #endif #if TEST #else #endif...
#import <UIKit/UIKit.h> typedef void (^Handler)(UITextField *txtf); @interface UITextField (ZJDateField) /*! @brief 点击右侧图标执行的操作 */ @property (nonatomic, copy) Han...
- (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; [self.cutline13 layoutIfNeeded]; [self.scrollView setContentSize:CGSizeMake(0, CGRe...
// 获取应用的bundle id #define kBundleID [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleIdentifier"]...
iOS 9下使用http: 在 App 的 Info.plist 中添加 NSAppTransportSecurity 类型Dictionary。 在 NSAppTransportSecurity 下添加 NSAllowsArbitraryLoads 类型 Boolean,值设为 YES。...
float version = [[[UIDevice currentDevice] systemVersion] floatValue]; if (version >= 8.0) { UIUserNotificationSettings *settings = [UIUserNotificationSett...
首先修改plist文件:View controller-based status bar appearance = no UIApplication *app = [UIApplication sharedApplication]; //设置状态栏的样式 app.statusBarStyle=UIS...
#pragma mark-设置状态栏的样式 - (UIStatusBarStyle)preferredStatusBarStyle { //设置为白色 return UIStatusBarStyleLightContent; //默认为黑色 // r...
UIApplication *app = [UIApplication sharedApplication]; // 打电话 [app openURL:[NSURL URLWithString:@"tel://10086"]]; //发短信 [app openURL:[NSURL URLWithString:@"sms...
// 即将失去活动状态的时候调用(失去焦点, 不可交互) - (void)applicationWillResignActive:(UIApplication *)application { } // 应用程序进入后台的时候调用 // 一般在该...
UILabel *titleText = [[UILabel alloc] initWithFrame: CGRectMake(kWidth/2 -60, 0, 120, 50)]; titleText.backgroundColor = [UIColor clearColor]; titleText.textAlignmen...
[but setTitleEdgeInsets:UIEdgeInsetsMake(top, left, bottom, right)]; 这四个参数的意思,是你设置的这个title内容离这个but每个边的距离是多少,上,左,下,右,以左边为例:如果l...
1.预置按钮类型 sdk提供了5个预置按钮类型:Detail Disclosure,Info Light,Info Dark,Contact Add,Rounded Rectangle。它们添加到sdk中首先是为了方便苹果公司自己。 构造...
没有更多内容
加载失败,请刷新页面
文章删除后无法恢复,确定删除此文章吗?
动弹删除后,数据将无法恢复
评论删除后,数据将无法恢复