<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[大牛的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/shubinniu</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; shubinniu]]></copyright><item><title><![CDATA[MacOS访问性权限来监听鼠标/键盘事件]]></title><link>https://blog.csdn.net/shubinniu/article/details/130581645</link><guid>https://blog.csdn.net/shubinniu/article/details/130581645</guid><author>shubinniu</author><pubDate>Tue, 09 May 2023 16:13:48 +0800</pubDate><description><![CDATA[方法一、 使用CGEventPost(kCGHIDEventTap, push);方法二、使用AXIsProcessTrustedWithOptions();这种方法想要生效，必须禁用沙盒功能，需要将App Sandbox 设置成 NO。2. Apple 沙盒应用程序不能具有该级别的控制（即完全的鼠标/窗口控制)1. Mac App Store 中的应用无法获得辅助功能权限。注意：Intel 架构没问题，终端输入。但辅助功能里面，仍存在该app。虽然m1 架构，也提示。]]></description><category></category></item><item><title><![CDATA[android:layerType=“software“ 与 HTML5 canvas]]></title><link>https://blog.csdn.net/shubinniu/article/details/124173565</link><guid>https://blog.csdn.net/shubinniu/article/details/124173565</guid><author>shubinniu</author><pubDate>Thu, 14 Apr 2022 15:46:45 +0800</pubDate><description><![CDATA[layout/web.xml


&lt;WebView
        android:id="@+id/webView"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_below="@+id/progressbar"
        android:visibility="visible"
        android:lay]]></description><category></category></item><item><title><![CDATA[Could not find com.android.tools.build:gradle:]]></title><link>https://blog.csdn.net/shubinniu/article/details/123182217</link><guid>https://blog.csdn.net/shubinniu/article/details/123182217</guid><author>shubinniu</author><pubDate>Mon, 28 Feb 2022 15:30:24 +0800</pubDate><description><![CDATA[Could not find com.android.tools.build:gradle:4.0.0.
Searched in the following locations:
  - https://jcenter.bintray.com/com/android/tools/build/gradle/4.0.0/gradle-4.0.0.pom
  - https://jcenter.bintray.com/com/android/tools/build/gradle/4.0.0/gradle-4.0.]]></description><category></category></item><item><title><![CDATA[iOS Xcode GoMobile .framework 编译通过,运行链接报错]]></title><link>https://blog.csdn.net/shubinniu/article/details/123074007</link><guid>https://blog.csdn.net/shubinniu/article/details/123074007</guid><author>shubinniu</author><pubDate>Tue, 22 Feb 2022 17:59:03 +0800</pubDate><description><![CDATA[panic: seq.Inc: unknown refnum: -24



goroutine 17 [running, locked to thread]:

golang.org/x/mobile/bind/seq.Inc(0x1ffffffe8)

/var/folders/qr/mcc50f6n0z364vdjny2s012m0000gn/T/gomobile-work-283351333/iossimulator/pkg/mod/golang.org/x/mobile@v0.0.0-201907]]></description><category></category></item><item><title><![CDATA[用两个栈实现队列]]></title><link>https://blog.csdn.net/shubinniu/article/details/121029302</link><guid>https://blog.csdn.net/shubinniu/article/details/121029302</guid><author>shubinniu</author><pubDate>Fri, 29 Oct 2021 10:19:08 +0800</pubDate><description><![CDATA[描述

用两个栈来实现一个队列，使用n个元素来完成 n 次在队列尾部插入整数(push)和n次在队列头部删除整数(pop)的功能。 队列中的元素为int类型。保证操作合法，即保证pop操作时队列内已有元素。



数据范围：n≤1000n≤1000

要求：存储n个元素的空间复杂度为O(n)O(n)，插入与删除的时间复杂度都是O(1)O(1)

示例1

输入：


["PSH1","PSH2","POP","POP"]

复制返回值：


1,2

复制说明：


"PSH1":代表将1插入队列...]]></description><category></category></item><item><title><![CDATA[NSURLSession同步请求]]></title><link>https://blog.csdn.net/shubinniu/article/details/120997345</link><guid>https://blog.csdn.net/shubinniu/article/details/120997345</guid><author>shubinniu</author><pubDate>Wed, 27 Oct 2021 17:13:10 +0800</pubDate><description><![CDATA[NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:@“url”];
NSURLResponse *response= nil;
   // 4 创建连接对象(同步)
NSError *error;
NSData *data = [NSURLConnection sendSynchronousRequest:request returningResponse:&amp;response error:&amp;error];
.]]></description><category></category></item><item><title><![CDATA[架构总结iOS]]></title><link>https://blog.csdn.net/shubinniu/article/details/120989132</link><guid>https://blog.csdn.net/shubinniu/article/details/120989132</guid><author>shubinniu</author><pubDate>Wed, 27 Oct 2021 14:57:24 +0800</pubDate><description><![CDATA[适合的才是最好的

我理解的架构划分+组装，就是用最简单的办法在遵循单一责任原则的前提下把责任划分到多个实体，然后再把实体进行组装，达到便于维护和使用的目的。

MVC

Model-View-Controller。MVC简单地将一个模块分为3部分：

View是展示给外部的界面

Model是Controller内部管理的数据模型，和各种数据操作工具

Controller负责将Model的变化更新到View

Controller负责处理来自View的事件

MVC的划分粒度很粗，View依赖于VC的生]]></description><category></category></item><item><title><![CDATA[iOS类属性探索]]></title><link>https://blog.csdn.net/shubinniu/article/details/120783296</link><guid>https://blog.csdn.net/shubinniu/article/details/120783296</guid><author>shubinniu</author><pubDate>Fri, 15 Oct 2021 15:13:36 +0800</pubDate><description><![CDATA[Type Encodings

Type Encodings
]]></description><category></category></item><item><title><![CDATA[组件化-Protocol]]></title><link>https://blog.csdn.net/shubinniu/article/details/120705891</link><guid>https://blog.csdn.net/shubinniu/article/details/120705891</guid><author>shubinniu</author><pubDate>Mon, 11 Oct 2021 16:23:32 +0800</pubDate><description><![CDATA[HomeVC.m
#import "HomeVC.h"
#import "ProtocolManager.h"
#import "AllProtocol.h"
@interface HomeVC ()&lt;Home_Protocol&gt;
@end
@implementation HomeVC

- (IBAction)btnAction:(id)sender {
    Class cls = [[ProtocolManager sharedInstance] classForPr...]]></description><category></category></item><item><title><![CDATA[组件化-CTMediator]]></title><link>https://blog.csdn.net/shubinniu/article/details/120705792</link><guid>https://blog.csdn.net/shubinniu/article/details/120705792</guid><author>shubinniu</author><pubDate>Mon, 11 Oct 2021 16:19:07 +0800</pubDate><description><![CDATA[CTMediator (Mine)分类
主要供Home使用，里面声明了可以调用的组件接口
NSString * const HomeGetTarget_Mine = @“Mine”;
NSString * const HomePerform_Action_mineNavigationPush = @“mineNavigationPush”;
- (UIViewController *)HomeMediator_MineAction:(NSDictionary *)param{
UIViewContro...]]></description><category></category></item><item><title><![CDATA[组件化-MGJRouter]]></title><link>https://blog.csdn.net/shubinniu/article/details/120705583</link><guid>https://blog.csdn.net/shubinniu/article/details/120705583</guid><author>shubinniu</author><pubDate>Mon, 11 Oct 2021 16:15:59 +0800</pubDate><description><![CDATA[//HomeVC.m
#import "HomeVC.h"
#import &lt;MGJRouter/MGJRouter.h&gt;
@interface HomeVC ()
@end
@implementation HomeVC

- (IBAction)mg_cAction:(id)sender {
    [MGJRouter openURL:@"NIU://home/pageMine” withUserInfo:@{@"VC" : self} completion:nil];
   ...]]></description><category></category></item><item><title><![CDATA[Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime]]></title><link>https://blog.csdn.net/shubinniu/article/details/111150344</link><guid>https://blog.csdn.net/shubinniu/article/details/111150344</guid><author>shubinniu</author><pubDate>Wed, 16 Dec 2020 14:34:58 +0800</pubDate><description><![CDATA[Error: Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime
经排查，发现针对mac系统，有指定的node版本，https://github.com/sass/node-sass/releases/tag/v4.13.1，mac最高支持node13，而我新安装的Node版本已经到了15，所以只能使用nvm选择指定的node版本。

brew install nvm

1]]></description><category></category></item><item><title><![CDATA[atos符号化]]></title><link>https://blog.csdn.net/shubinniu/article/details/111248016</link><guid>https://blog.csdn.net/shubinniu/article/details/111248016</guid><author>shubinniu</author><pubDate>Wed, 16 Dec 2020 14:34:26 +0800</pubDate><description><![CDATA[准备MyApp.app.dSYM
我们使用atos命令来完成符号化，具体命令如下：
$atos -arch &lt;Binary Architecture&gt; -o &lt;Path to dSYM file&gt;/Contents/Resources/DWARF/&lt;binary image name&gt; -l &lt;load address&gt; &lt;address to symbolicate&gt;

$atos -arch arm64 -o MyApp -l 0x00000.]]></description><category></category></item><item><title><![CDATA[CocoaPods安装]]></title><link>https://blog.csdn.net/shubinniu/article/details/90901480</link><guid>https://blog.csdn.net/shubinniu/article/details/90901480</guid><author>shubinniu</author><pubDate>Wed, 05 Jun 2019 14:09:52 +0800</pubDate><description><![CDATA[每年因为MAC系统的更新或者镜像源的变化，导致在pod安装过程中遇见许多问题，因为这玩意一旦安装完之后就没人去管它，所以很多变化之后的操作就产生莫名其妙的错误，很是头疼，今天我来给大家稍作整理，如有不全之处，敬请指点！1.更新gem


一般情况下，新MAC都有最新的MAC源，但是为了保险起见，我们还是升级一下比较好.


以前的安装方法是这样的


sudo gem update --syste...]]></description><category></category></item><item><title><![CDATA[has conflicting provisioning settings.]]></title><link>https://blog.csdn.net/shubinniu/article/details/90208302</link><guid>https://blog.csdn.net/shubinniu/article/details/90208302</guid><author>shubinniu</author><pubDate>Tue, 14 May 2019 15:53:25 +0800</pubDate><description><![CDATA[项目中的单元测试报错如下：

xxx has conflicting provisioning settings.xxx is automatically signed, but provisioning profile b9c32186-a5ad-43dd-a910-1c639b1ad5c3 has been manually specified. Set the provisioning pr...]]></description><category></category></item><item><title><![CDATA[扩大UIButton 响应区域]]></title><link>https://blog.csdn.net/shubinniu/article/details/82869131</link><guid>https://blog.csdn.net/shubinniu/article/details/82869131</guid><author>shubinniu</author><pubDate>Thu, 27 Sep 2018 16:27:39 +0800</pubDate><description><![CDATA[根据设置按钮图片方法可分为两种方式

1.setImage: 设置图片内容显示模式为居中,然后再设置图片的边距和按钮的大小


[[button imageView] setContentMode: UIViewContentModeCenter];
[[button setImage:[UIImage imageNamed:@&quot;xxx.png&quot;] forState:UIControlStateN...]]></description><category></category></item><item><title><![CDATA[sizeThatFits 和 sizeToFit的区别]]></title><link>https://blog.csdn.net/shubinniu/article/details/82843356</link><guid>https://blog.csdn.net/shubinniu/article/details/82843356</guid><author>shubinniu</author><pubDate>Tue, 25 Sep 2018 19:03:42 +0800</pubDate><description><![CDATA[1. 

UIView 有个 sizeToFit 方法来计算 UIView 合适的 bounds.size, 注意 autolayout 约束过的 view 该方法失效.

testLabel.numberOfLines = 0; ///相当于不限制行数，对sizeToFit也会有影响

2.

- (void)sizeToFit
- (CGSize)sizeThatFits:(CGSize)si...]]></description><category></category></item><item><title><![CDATA[NSProxy]]></title><link>https://blog.csdn.net/shubinniu/article/details/80895450</link><guid>https://blog.csdn.net/shubinniu/article/details/80895450</guid><author>shubinniu</author><pubDate>Tue, 03 Jul 2018 14:56:42 +0800</pubDate><description><![CDATA[什么是NSProxy：NSProxy是一个抽象的基类，是根类，与NSObject类似NSProxy和NSObject都实现了&amp;lt;NSObject&amp;gt;协议提供了消息转发的通用接口如何使用NSProxy来转发消息? 1.需要继承NSProxy 2.重写如下的2个方法：methodSignatureForSelector:forwardInvocation:methodSignatureForS...]]></description><category></category></item><item><title><![CDATA[Method总结]]></title><link>https://blog.csdn.net/shubinniu/article/details/80895399</link><guid>https://blog.csdn.net/shubinniu/article/details/80895399</guid><author>shubinniu</author><pubDate>Tue, 03 Jul 2018 11:02:25 +0800</pubDate><description><![CDATA[SELSEL又叫选择器，是表示一个方法的selector的指针，其定义如下：1typedef struct objc_selector *SEL;objc_selector结构体的详细定义没有在头文件中找到。方法的selector用于表示运行时方 法的名字。Objective-C在编译时，会依据每一个方法的名字、参数序列，生成一个唯一的整型标识(Int类型的地址)，这个标识就是SEL。如下 代码所...]]></description><category></category></item><item><title><![CDATA[代理未实现警告]]></title><link>https://blog.csdn.net/shubinniu/article/details/80476419</link><guid>https://blog.csdn.net/shubinniu/article/details/80476419</guid><author>shubinniu</author><pubDate>Mon, 28 May 2018 10:26:08 +0800</pubDate><description><![CDATA[警告信息： Assigning to 'id&amp;lt;UINavigationControllerDelegate&amp;gt; _Nullable' from incompatible type 'CBNavigationController *__weak or __strong' 解决方法，很简单，（在 @interface 文件中继承它的代理即可）如下：重新编译一下就可以了。...]]></description><category></category></item></channel></rss>