- 博客(9)
- 资源 (3)
- 收藏
- 关注
原创 Xcode6新建工程部署到iOS7设备上不能全屏显示
当你运行项目时出现这样的警告:warning: All interface orientations must be supported unless the app requires full screen.直接上图:
2015-12-23 17:55:40 797
转载 Xcode 7免证书真机调试
如果你打算向App Store提交应用,那仍然需要付费。使用方法: 1.新建一个普通的项目 2.进入xcode,菜单栏选择xcode –> preferences (快捷键 command + ) 3.在Accounts选项卡添加自己的Apple ID。 添加完成后你会看到这样的信息。可以看到下面显示了iOS和Mac的Free标记了,
2015-12-15 09:12:27 480
原创 向右滑动返回上一页
.m文件- (void)viewDidAppear:(BOOL)animated{ self.view.backgroundColor = [UIColor brownColor]; self.navigationController.interactivePopGestureRecognizer.enabled = YES;//让rootView禁止滑动}- (BOOL
2015-12-14 08:22:00 1677
原创 iOS UIWebView 加载网页
#import "webViewController.h"#define UISCREEN_WIDTH [[UIScreen mainScreen]bounds].size.width#define UISCREEN_HEIGHT [[UIScreen mainScreen]bounds].size.height@interface webViewController ()@en...
2015-12-11 15:27:50 471
原创 textField中只能输入数字
#pragma mark - textField //只能输入数字-(BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string{ NSCharacterSet *cs = [[NSCharacter
2015-12-04 14:31:27 2658
原创 iOS 修改为http协议
iOS9后系统默认的是https协议,https和http的区别就是安全性修改为http协议的方法是:1、打开项目的plist文件找到Info;2、找到Application requires iPhone environment;3、添加Allow Arbitrary Loads 并设置为YES。...
2015-12-03 11:22:10 982
原创 根据按钮的状态来修改图片
UIButton *keepPWD = [UIButton buttonWithType:UIButtonTypeCustom];keepPWD.frame = CGRectMake(5, 390, 20, 20);[keepPWD setImage:[UIImage imageNamed:@"jzmm1.png"] forState:UIControlStateNormal];keepPW
2015-12-03 09:30:53 498
原创 textField中含有图片,文字在图片后显示
UITextField *numberTF = [[UITextField alloc]init];numberTF.frame = CGRectMake(5, 200, UISCREEN_WIDTH-10, 50);numberTF.borderStyle = UITextBorderStyleRoundedRect;numberTF.placeholder = @"请输入您的账号";[
2015-12-02 21:32:55 884
原创 修改textField的placeholder的字体颜色、大小
textField.placeholder = @"请输入您的密码";[textField setValue:[UIColor redColor] forKeyPath:@"_placeholderLabel.textColor"];[textField setValue:[UIFont boldSystemFontOfSize:16] forKeyPath:@"_placeholderLab
2015-12-02 14:29:10 492
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人