`
wo890532
  • 浏览: 8157 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论
文章列表
一、关于四个容易混淆属性的对比说明 1. textAligment : 文字的水平方向的对齐方式 (1) 取值 NSTextAlignmentLeft      = 0,    // 左对齐 NSTextAlignmentCenter    = 1,    // 居中对齐 NSTextAlignmentRight    = 2,    // 右对齐 (2) ...
@interface MJScrollView ()  {     CGPoint _lastOffset; } @end @implementation MJScrollView #pragma mark - 生命周期方法 - (id)initWithFrame:(CGRect)frame {     self = [super initWithFrame:frame];     if (self) {         [self initial];     }     return self; } - (id)init {     if (self = [super init]) {   ...
#pragma mark - 生命周期方法 - (id)initWithFrame:(CGRect)frame {     self = [super initWithFrame:frame];     if (self) {         [self initial];     }     return self; } - (id)init {     if (self = [super init]) {         [self initial];     }     return self; } #pragma mark 当MJScrollView从xib中创建完毕后会调用这个方法 ...
+ (void)showError:(NSString *)error toView:(UIView *)view{     // 快速显示一个提示信息     MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:view animated:YES];     hud.labelText = error;     // 设置图片     hud.customView = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"alert_failed_icon.png" ...
1. 如果只是想把当前页面的状态栏隐藏的话,直接用下面的代码就可以了     [[UIApplication sharedApplication] setStatusBarHidden:TRUE]; 2. 如果是想把整个应用程序的状态栏都隐藏掉,操作如下:     在info.plist上添加一项:Status bar is initially hidden,value为YES;     完后在MainAppDelegate.mm的- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptio ...
作为iOS 开发者,常遇到一个诡异的上传问题。 好不容易上传了一个app, 第一时间收到的邮件不是 ready for sale ,而是 “The PNG icon file Icon@2x.png appears to be corrupt”. 内容如下: 'Dear developer, We have discovered one or more issues with your recent binary submission for "悠悠电台". Before your app can be reviewed, the following issues mus ...
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib. - (void)viewDidLoad {     [super viewDidLoad];     self.view.backgroundColor=[UIColor whiteColor];     UIView * viewTest=[[UIView alloc] initWithFrame:CGRectMake(50, 50, 200, 200)];     viewTest.backgroundCo ...
app尺寸,去掉状态栏 CGRect r = [ UIScreen mainScreen ].applicationFrame; r=0,20,320,460 屏幕尺寸 CGRect rx = [ UIScreen mainScreen ].bounds; r=0,0,320,480 状态栏尺寸 CGRect rect; rect = [[UIApplication sharedApplication] statusBarFrame]; iphone中获取屏幕分辨率的方法 CGRect rect = [[UIScreen mainScreen] bounds]; CGSize size = re ...
@implementation HDHostSleep - (instancetype)init {     self = [super init];     if (self) {         NSArray *array = [[NSBundle mainBundle] loadNibNamed:@"HDHostSleep" owner:self options:nil];         self = array.lastObject;     }     return self; } - (void)showInView:(UIView *)view{     ...
Global site tag (gtag.js) - Google Analytics