摘要:
1、在不同的应用中,有关状态栏的样式是不定的,系统的默认样式是黑色的,然而有一些应用是需要白色的,所以就需要进行相关的设置,设置状态栏的样式有2种方式,下面分别讲述一下。 2、方法一: 直接在需要改变默认状态栏样式的控制器中实现一个方法(其他任何事情都不用做): 这个方法会在界面调用的时候实现,并且 阅读全文
摘要:
文章来自http://www.jianshu.com/p/47c1377c61d6 https://www.cnblogs.com/Rinpe/p/5670017.html 111.png 工程配置信息中设置显示launchImage:1、删除Launch Screen File2、在Launch 阅读全文
摘要:
使用终端命令行将本地项目上传到Github 对于IOS开发者来说,Github的使用是必须要掌握的一种技能,而把项目由本地上传到Github有多种方式,1开发工具Xcode配置Git,由Xcode-->Source Control-->Commit;2使用Github客户端上传代码;3使用终端命令行 阅读全文
摘要:
1.创建项目,项目中的非代码移到Suppoing Files中 2.创建对应的开发模块 3.搭建项目中的主体框架 一、微信主流框架的搭建 1. 在AppDelegate中,将window的rootViewController设置为带有UITabBarController的导航控制器; 2. 创建子控 阅读全文
摘要:
Last login: Thu Oct 15 08:56:20 on consolechihaitaodeMac-mini-19:~ laouhn$ cd /Users/laouhn/Desktop/静态库lipo -create /Users/laouhn/Desktop/静态库/Release-... 阅读全文
摘要:
(NSString *)name; //通知的名称(id)object ;通知发布者(NSDictionary *)userInfo; 一些额外信息+ (instancetype)notificatinWithName:(NSString *)aName object:(id)anObject ;+... 阅读全文
摘要:
//campact和Regular继承自anyw:Compact h:Compact 继承 (w:Any h:Compact , w:Compact h:Any , w:Any h:Any)w:Regular h:Compact 继承 (w:Any h:Compact , w:Regular h:A... 阅读全文
摘要:
button.contentEdgeInsetsbutton.titleEdgeInsetsbutton.imageEdgeInsets 阅读全文
摘要:
一::UIScrollView的常见属性1.contentOffset 表示UIScrollView滚动的位置2.contentSize; 表示UIScrollView内容尺寸,滚动范围3.contentInset; 表示在UIScrollView的4周增加额外的公洞区域二:单例的两种写法+(Ser... 阅读全文
摘要:
开发者账号分为两种1.个人账号 99&可以上传2.公司账号1.99&可以上传2.299&禁止 公司内部使用,不需要审核3.证书最常见的三种1.测试证书 (developenment)2.发布证书 (distribution)3.推送证书(APNs)CSR文件记录本机信息p12文件AppID ; Ap... 阅读全文
摘要:
拿到Window的三种方法self.view.windowself.view.superView[UIApplication shareApplication].keyWindon 阅读全文
摘要:
PCH文件 — Prefix.pch#define MJLog(…)NSLog(__VA_ARGS__)NSPersistentstorecoordinator#ifdef __OBJC__ //里面的所有内容只能用到.m文件中#import #import #endif#ifdef DEBUG /... 阅读全文
摘要:
一.UIPickerView1.UIPickerView的常见属性//数据源(用来告诉UIPickerView有多少列多少行)@property(nonatomic,assign)id dataSource;//代理(用来告诉UIPickerView每1列的每1行显示什么内容,监听UIPickerV... 阅读全文
摘要:
@interfaceUIView : UIResponder/***通过一个frame来初始化一个UI控件*/- (id)initWithFrame:(CGRect)frame;// YES:能够跟用户进行交互@property(nonatomic,getter=isUserInteractionE... 阅读全文
摘要:
使用推送得流程1.创建APP ID,选择推送服务2.为APP ID创建推送证书 (包括测试盒生产,证书类型为APNs)3.极光推送为例:4.注册账号5.创建应用 (支付宝多一步,签约商家)6.下载demo工程,修改plist内的APP key,进行真机测试.主:真机测试步骤请查看上面的真机测试流程.... 阅读全文
摘要:
viewControl的生命周期 阅读全文
摘要:
三数据存储:1.plist 属性列表1>适用对象:仅仅是Foundation 框架中的自带的一些类,比如NSString \ NSArray \ NSDIcionary\NSSet\NSNumber\NSData2.适用对象WriteToFile...方法写入文件3>调用对象...WithConte... 阅读全文
摘要:
//tableView的三种刷新方式//1.删除模型数据 2. 刷新表格 3.归档[self.tableView reload]; //所有cell全部刷新[self.tableView reloadRowsAtIndexPahts: withRowAnimation:] //刷新某一行 行数不变[... 阅读全文
摘要:
$(SRCROOT)LessonSwiftFinal/OCSwiftBridge.h 阅读全文
摘要:
xcoe7数据显示NSAllowsArbitraryLoadsNSAppTransportSecurity//自己设置主窗口 阅读全文
摘要:
+ (NSString *)replaceUnicode:(NSString *)unicodeStr { NSString *tempStr1 = [unicodeStr stringByReplacingOccurrencesOfString:@"\\u"withString:@"... 阅读全文
摘要:
#import "AppDelegate.h"@interface AppDelegate ()@end@implementation AppDelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWith... 阅读全文
摘要:
#import "ViewController.h"#import "Person.h"#import "Student.h"@interface ViewController (){ NSString *_text;}@property (weak, nonatomic) IBOutlet ... 阅读全文
摘要:
1.任何一个程序,无论是基于Mac OS 还是 iOS,程序都是从main.m文件的main函数开始执行的.#import #import "AppDelegate.h" int main(int argc, char * argv[]) { @autoreleasepool { ... 阅读全文
摘要:
UIView *yellowView = [[UIView alloc] initWithFrame:CGRectMake(30, 30, 200, 200)]; yellowView.backgroundColor = [UIColor yellowColor]; [self.wind... 阅读全文
摘要:
#import "TextViewController.h"@interface TextViewController ()@end@implementation TextViewController/* UITextView文本视图相比与UITextField直观的区别就是UITextView可以... 阅读全文
摘要:
#import "RootController.h"@interface RootController ()@property (nonatomic, retain) NSMutableArray *dataList; // 存储数据源@property (nonatomic, retain) NS... 阅读全文
摘要:
#import "RootViewController.h"@interface RootViewController ()@property (nonatomic, retain) UITextField *textField;@end@implementation RootViewControl... 阅读全文
摘要:
#import "RootViewController.h"@interface RootViewController ()@end@implementation RootViewController- (void)viewDidLoad { [super viewDidLoad]; ... 阅读全文
摘要:
#import int main(int argc, const char * argv[]) {// 一: copy 与 retain 的区别// 谁才有引用计数的概念:// 1. 堆区空间才有引用计数概念.// 2. 堆区的对象才会有引用计数. //%ld: - 1... 阅读全文
摘要:
#import "YYViewController.h"@interface YYViewController () @property (weak, nonatomic) IBOutlet UIScrollView *scrollview;/** * 页码 */@property (weak, ... 阅读全文
摘要:
iOS Crash文件的解析(一)2015-01-22 11:45编辑:suiling分类:iOS开发来源:一片枫叶的博客03913iOS开发应用管理Crash文件进程调试招聘信息:Cocos2d-x开发工程师iOS高级工程师高级iOS开发工程师iOS 开发工程师iOS开发工程师iOS高级工程师iO... 阅读全文
摘要:
#import "RootViewController.h"@interface RootViewController ()@end@implementation RootViewController- (void)viewDidLoad { [super viewDidLoad]; ... 阅读全文
摘要:
用了三个第三方- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[[UIWindow all... 阅读全文
摘要:
#import "AppDelegate.h"@interface AppDelegate (){ NSInteger _totalTickests;}@property (nonatomic, retain) NSLock *lock;@end@implementation AppDeleg... 阅读全文
摘要:
#import "OneViewController.h"@interface OneViewController ()@end@implementation OneViewController- (void)viewDidLoad { [super viewDidLoad]; // D... 阅读全文
摘要:
#import "ViewController.h"#import "UITextField+Shake.h"@interface ViewController ()@property (retain, nonatomic) IBOutlet UIImageView *balloonImage;@p... 阅读全文
摘要:
#import "AppDelegate.h"#import "FirstTableViewController.h"#import "SecondTableViewController.h"#import "ThirdTableViewController.h"#import "FourthTab... 阅读全文