不疯不成魔

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2017年11月16日

摘要: 1、在不同的应用中,有关状态栏的样式是不定的,系统的默认样式是黑色的,然而有一些应用是需要白色的,所以就需要进行相关的设置,设置状态栏的样式有2种方式,下面分别讲述一下。 2、方法一: 直接在需要改变默认状态栏样式的控制器中实现一个方法(其他任何事情都不用做): 这个方法会在界面调用的时候实现,并且 阅读全文
posted @ 2017-11-16 14:15 不疯不成魔 阅读(1042) 评论(0) 推荐(0) 编辑

摘要: 文章来自http://www.jianshu.com/p/47c1377c61d6 https://www.cnblogs.com/Rinpe/p/5670017.html 111.png 工程配置信息中设置显示launchImage:1、删除Launch Screen File2、在Launch 阅读全文
posted @ 2017-11-16 13:58 不疯不成魔 阅读(1822) 评论(0) 推荐(0) 编辑

2017年11月14日

摘要: 使用终端命令行将本地项目上传到Github 对于IOS开发者来说,Github的使用是必须要掌握的一种技能,而把项目由本地上传到Github有多种方式,1开发工具Xcode配置Git,由Xcode-->Source Control-->Commit;2使用Github客户端上传代码;3使用终端命令行 阅读全文
posted @ 2017-11-14 19:36 不疯不成魔 阅读(319) 评论(0) 推荐(0) 编辑

2017年5月3日

摘要: 1.创建项目,项目中的非代码移到Suppoing Files中 2.创建对应的开发模块 3.搭建项目中的主体框架 一、微信主流框架的搭建 1. 在AppDelegate中,将window的rootViewController设置为带有UITabBarController的导航控制器; 2. 创建子控 阅读全文
posted @ 2017-05-03 16:43 不疯不成魔 阅读(193) 评论(0) 推荐(0) 编辑

2016年10月20日

摘要: 阅读全文
posted @ 2016-10-20 09:44 不疯不成魔 阅读(178) 评论(0) 推荐(0) 编辑

2015年11月12日

摘要: Last login: Thu Oct 15 08:56:20 on consolechihaitaodeMac-mini-19:~ laouhn$ cd /Users/laouhn/Desktop/静态库lipo -create /Users/laouhn/Desktop/静态库/Release-... 阅读全文
posted @ 2015-11-12 19:23 不疯不成魔 阅读(157) 评论(0) 推荐(0) 编辑

摘要: (NSString *)name; //通知的名称(id)object ;通知发布者(NSDictionary *)userInfo; 一些额外信息+ (instancetype)notificatinWithName:(NSString *)aName object:(id)anObject ;+... 阅读全文
posted @ 2015-11-12 19:22 不疯不成魔 阅读(157) 评论(0) 推荐(0) 编辑

摘要: //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... 阅读全文
posted @ 2015-11-12 19:21 不疯不成魔 阅读(100) 评论(0) 推荐(0) 编辑

摘要: button.contentEdgeInsetsbutton.titleEdgeInsetsbutton.imageEdgeInsets 阅读全文
posted @ 2015-11-12 19:20 不疯不成魔 阅读(408) 评论(0) 推荐(0) 编辑

摘要: 一::UIScrollView的常见属性1.contentOffset 表示UIScrollView滚动的位置2.contentSize; 表示UIScrollView内容尺寸,滚动范围3.contentInset; 表示在UIScrollView的4周增加额外的公洞区域二:单例的两种写法+(Ser... 阅读全文
posted @ 2015-11-12 19:20 不疯不成魔 阅读(93) 评论(0) 推荐(0) 编辑

摘要: 开发者账号分为两种1.个人账号 99&可以上传2.公司账号1.99&可以上传2.299&禁止 公司内部使用,不需要审核3.证书最常见的三种1.测试证书 (developenment)2.发布证书 (distribution)3.推送证书(APNs)CSR文件记录本机信息p12文件AppID ; Ap... 阅读全文
posted @ 2015-11-12 19:18 不疯不成魔 阅读(324) 评论(0) 推荐(0) 编辑

摘要: 拿到Window的三种方法self.view.windowself.view.superView[UIApplication shareApplication].keyWindon 阅读全文
posted @ 2015-11-12 19:18 不疯不成魔 阅读(155) 评论(0) 推荐(0) 编辑

摘要: PCH文件 — Prefix.pch#define MJLog(…)NSLog(__VA_ARGS__)NSPersistentstorecoordinator#ifdef __OBJC__ //里面的所有内容只能用到.m文件中#import #import #endif#ifdef DEBUG /... 阅读全文
posted @ 2015-11-12 14:33 不疯不成魔 阅读(169) 评论(0) 推荐(0) 编辑

摘要: 一.UIPickerView1.UIPickerView的常见属性//数据源(用来告诉UIPickerView有多少列多少行)@property(nonatomic,assign)id dataSource;//代理(用来告诉UIPickerView每1列的每1行显示什么内容,监听UIPickerV... 阅读全文
posted @ 2015-11-12 14:31 不疯不成魔 阅读(512) 评论(0) 推荐(0) 编辑

摘要: @interfaceUIView : UIResponder/***通过一个frame来初始化一个UI控件*/- (id)initWithFrame:(CGRect)frame;// YES:能够跟用户进行交互@property(nonatomic,getter=isUserInteractionE... 阅读全文
posted @ 2015-11-12 14:28 不疯不成魔 阅读(443) 评论(0) 推荐(0) 编辑

摘要: 使用推送得流程1.创建APP ID,选择推送服务2.为APP ID创建推送证书 (包括测试盒生产,证书类型为APNs)3.极光推送为例:4.注册账号5.创建应用 (支付宝多一步,签约商家)6.下载demo工程,修改plist内的APP key,进行真机测试.主:真机测试步骤请查看上面的真机测试流程.... 阅读全文
posted @ 2015-11-12 14:28 不疯不成魔 阅读(152) 评论(0) 推荐(0) 编辑

摘要: viewControl的生命周期 阅读全文
posted @ 2015-11-12 14:26 不疯不成魔 阅读(120) 评论(0) 推荐(0) 编辑

摘要: 三数据存储:1.plist 属性列表1>适用对象:仅仅是Foundation 框架中的自带的一些类,比如NSString \ NSArray \ NSDIcionary\NSSet\NSNumber\NSData2.适用对象WriteToFile...方法写入文件3>调用对象...WithConte... 阅读全文
posted @ 2015-11-12 14:22 不疯不成魔 阅读(274) 评论(0) 推荐(0) 编辑

摘要: //tableView的三种刷新方式//1.删除模型数据 2. 刷新表格 3.归档[self.tableView reload]; //所有cell全部刷新[self.tableView reloadRowsAtIndexPahts: withRowAnimation:] //刷新某一行 行数不变[... 阅读全文
posted @ 2015-11-12 14:19 不疯不成魔 阅读(1040) 评论(0) 推荐(0) 编辑

摘要: $(SRCROOT)LessonSwiftFinal/OCSwiftBridge.h 阅读全文
posted @ 2015-11-12 14:17 不疯不成魔 阅读(183) 评论(0) 推荐(0) 编辑

摘要: Quartz2D 阅读全文
posted @ 2015-11-12 14:17 不疯不成魔 阅读(114) 评论(0) 推荐(0) 编辑

摘要: xcoe7数据显示NSAllowsArbitraryLoadsNSAppTransportSecurity//自己设置主窗口 阅读全文
posted @ 2015-11-12 14:15 不疯不成魔 阅读(129) 评论(0) 推荐(0) 编辑

摘要: + (NSString *)replaceUnicode:(NSString *)unicodeStr { NSString *tempStr1 = [unicodeStr stringByReplacingOccurrencesOfString:@"\\u"withString:@"... 阅读全文
posted @ 2015-11-12 14:12 不疯不成魔 阅读(258) 评论(0) 推荐(0) 编辑

2015年10月27日

摘要: #import "AppDelegate.h"@interface AppDelegate ()@end@implementation AppDelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWith... 阅读全文
posted @ 2015-10-27 14:24 不疯不成魔 阅读(183) 评论(0) 推荐(0) 编辑

摘要: #import "ViewController.h"#import "Person.h"#import "Student.h"@interface ViewController (){ NSString *_text;}@property (weak, nonatomic) IBOutlet ... 阅读全文
posted @ 2015-10-27 14:12 不疯不成魔 阅读(161) 评论(0) 推荐(0) 编辑

2015年9月19日

摘要: 1.任何一个程序,无论是基于Mac OS 还是 iOS,程序都是从main.m文件的main函数开始执行的.#import #import "AppDelegate.h" int main(int argc, char * argv[]) { @autoreleasepool { ... 阅读全文
posted @ 2015-09-19 11:59 不疯不成魔 阅读(160) 评论(0) 推荐(0) 编辑

摘要: UIView *yellowView = [[UIView alloc] initWithFrame:CGRectMake(30, 30, 200, 200)]; yellowView.backgroundColor = [UIColor yellowColor]; [self.wind... 阅读全文
posted @ 2015-09-19 11:08 不疯不成魔 阅读(190) 评论(0) 推荐(0) 编辑

2015年9月18日

摘要: #import "TextViewController.h"@interface TextViewController ()@end@implementation TextViewController/* UITextView文本视图相比与UITextField直观的区别就是UITextView可以... 阅读全文
posted @ 2015-09-18 17:38 不疯不成魔 阅读(258) 评论(0) 推荐(0) 编辑

摘要: #import "RootController.h"@interface RootController ()@property (nonatomic, retain) NSMutableArray *dataList; // 存储数据源@property (nonatomic, retain) NS... 阅读全文
posted @ 2015-09-18 17:34 不疯不成魔 阅读(223) 评论(0) 推荐(0) 编辑

摘要: #import "RootViewController.h"@interface RootViewController ()@property (nonatomic, retain) UITextField *textField;@end@implementation RootViewControl... 阅读全文
posted @ 2015-09-18 17:32 不疯不成魔 阅读(5247) 评论(0) 推荐(0) 编辑

摘要: #import "RootViewController.h"@interface RootViewController ()@end@implementation RootViewController- (void)viewDidLoad { [super viewDidLoad]; ... 阅读全文
posted @ 2015-09-18 17:29 不疯不成魔 阅读(557) 评论(0) 推荐(0) 编辑

摘要: #import int main(int argc, const char * argv[]) {// 一: copy 与 retain 的区别// 谁才有引用计数的概念:// 1. 堆区空间才有引用计数概念.// 2. 堆区的对象才会有引用计数. //%ld: - 1... 阅读全文
posted @ 2015-09-18 17:17 不疯不成魔 阅读(293) 评论(0) 推荐(0) 编辑

摘要: #import "YYViewController.h"@interface YYViewController () @property (weak, nonatomic) IBOutlet UIScrollView *scrollview;/** * 页码 */@property (weak, ... 阅读全文
posted @ 2015-09-18 14:15 不疯不成魔 阅读(334) 评论(0) 推荐(0) 编辑

摘要: iOS Crash文件的解析(一)2015-01-22 11:45编辑:suiling分类:iOS开发来源:一片枫叶的博客03913iOS开发应用管理Crash文件进程调试招聘信息:Cocos2d-x开发工程师iOS高级工程师高级iOS开发工程师iOS 开发工程师iOS开发工程师iOS高级工程师iO... 阅读全文
posted @ 2015-09-18 10:55 不疯不成魔 阅读(208) 评论(0) 推荐(0) 编辑

2015年9月17日

摘要: #import "RootViewController.h"@interface RootViewController ()@end@implementation RootViewController- (void)viewDidLoad { [super viewDidLoad]; ... 阅读全文
posted @ 2015-09-17 22:36 不疯不成魔 阅读(210) 评论(0) 推荐(0) 编辑

摘要: 用了三个第三方- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[[UIWindow all... 阅读全文
posted @ 2015-09-17 20:01 不疯不成魔 阅读(190) 评论(0) 推荐(0) 编辑

摘要: #import "AppDelegate.h"@interface AppDelegate (){ NSInteger _totalTickests;}@property (nonatomic, retain) NSLock *lock;@end@implementation AppDeleg... 阅读全文
posted @ 2015-09-17 19:32 不疯不成魔 阅读(290) 评论(0) 推荐(0) 编辑

摘要: #import "OneViewController.h"@interface OneViewController ()@end@implementation OneViewController- (void)viewDidLoad { [super viewDidLoad]; // D... 阅读全文
posted @ 2015-09-17 19:27 不疯不成魔 阅读(276) 评论(0) 推荐(0) 编辑

摘要: #import "ViewController.h"#import "UITextField+Shake.h"@interface ViewController ()@property (retain, nonatomic) IBOutlet UIImageView *balloonImage;@p... 阅读全文
posted @ 2015-09-17 19:17 不疯不成魔 阅读(213) 评论(0) 推荐(0) 编辑

2015年9月15日

摘要: #import "AppDelegate.h"#import "FirstTableViewController.h"#import "SecondTableViewController.h"#import "ThirdTableViewController.h"#import "FourthTab... 阅读全文
posted @ 2015-09-15 20:51 不疯不成魔 阅读(171) 评论(0) 推荐(0) 编辑