自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

知行博客

Willed App

  • 博客(9)
  • 资源 (3)
  • 收藏
  • 关注

原创 UItextView禁用手势同时响应富文本按钮

需求:1、UITextView中加入CheckBox(UIButton),使用富文本方式实现。2、UITextView在非编辑状态下不可点击(添加UITextView到UITableViewCell,textView需要响应Cell父视图事件),但可以点击CheckBox。3、UITextView在编辑状态下恢复点击状态。实现:新建一个UITextView的分类,m文件加入以上...

2019-04-29 09:20:29 979

原创 iOS判断横竖屏的宏

#define IsPortrait ([[UIApplication sharedApplication] statusBarOrientation] == UIInterfaceOrientationPortrait || [[UIApplication sharedApplication] statusBarOrientation] == UIInterfaceOrientationPort...

2018-04-02 16:59:50 2994

原创 在iOS健康应用中添加正念数据

HKCategoryTypeIdentifierMindfulSession对应的HKCategoryValue为HKCategoryValueNotApplicable    HKCategoryType *categoryType = [HKCategoryType categoryTypeForIdentifier:HKCategoryTypeIdentifierMindfulSession...

2018-04-02 10:24:24 1119

转载 iOS 截图 截取屏幕 背景透明

UIGraphicsBeginImageContextWithOptions(CGSize size, BOOL opaque, CGFloat scale)  第二个参数,NO,YES 控制是否透明背景透明时,如果保存图像到相册,会自动添加白色背景。所以需要保存图像为文件,然后通过SHERE方式导出。...

2018-03-12 09:52:51 2739

转载 MAC清理DS_Store和._文件

打开终端输入find . -name .DS_Store -type f -delete ; find . -type d | xargs dot_clean

2018-03-08 20:24:46 3151

原创 使用gitee(码云)同步XCode代码块

一、XCode代码块所在位置~/Library/Developer/Xcode/UserData/CodeSnippets二、打开终端,把CodeSnippets文件夹上传到码云cd ~/Library/Developer/Xcode/UserData/CodeSnippetsgit initgit add .git commit -m "Init code snippets"git re...

2018-03-07 10:11:20 2881

转载 几个常用的XCode快捷键

 command + control + e 修改变量名称的快捷键。相当于Edit ->Refactor->Rename(进行重构方法或者变量等) command + option + enter 同时显示2个页面在类或者方法名上执行Option + Left点击操作使用内联帮助可帮开发者快速学习类或代码片段的用法。command + 3 来打开 Find navigator。Comm...

2018-03-07 09:46:37 569

转载 删除本地git

删除gitrm -rf .git #添加r参数,指定删除目录

2018-03-06 11:40:42 2283

转载 使用git管理gitee(码云)项目

简易的命令行入门教程:Git 全局设置:git config --global user.name "Willed"git config --global user.email "[email protected]"创建 git 仓库:mkdir ddddcd ddddgit inittouch README.mdgit add README.mdgit commit -m "first co...

2018-03-06 11:34:23 1601

iOS 12.2正式版本真机测试包 (16E226)

iOS 12.2正式版本真机测试包 (16E226),文件路径/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

2019-04-07

beamOff,MAC优化必备

// // AppDelegate.m // beamoff // // Created by ANDREI VAYAVODA on 09.11.14. // Copyright (c) 2014 ANDREI VAYAVODA. All rights reserved. // #import "AppDelegate.h" extern void CGSSetDebugOptions(int); extern void CGSDeferredUpdates(int); typedef enum { disableBeamSync = 0, automaticBeamSync = 1, forcedBeamSyncMode = 2 } beamSyncMode; @interface AppDelegate () @property (weak) IBOutlet NSWindow *window; @end @implementation AppDelegate - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { int mode = disableBeamSync; CGSSetDebugOptions(mode ? 0 : 0x08000000); CGSDeferredUpdates(mode); [self.window close]; [NSApp terminate:self]; } - (void)applicationWillTerminate:(NSNotification *)aNotification { // Insert code here to tear down your application }

2018-11-27

luka1995-LPPopupListView

luka1995-LPPopupListView 弹出窗口

2015-07-10

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除