E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
implementation
用AVPlayer实现视频播放
#import"PlayView.h"@
implementation
PlayView+(Class)layerClass{return[AVPlayerLayerclass];}-(AVPlayer*)
JasonEVA
·
2021-04-26 02:47
完美解决UIButton按钮重复点击、多次响应的问题
于是想了几个方法:1.添加UIButton分类,重写-(BOOL)isTouchInside方法,让按钮在点击了一次之后的0.2s(可设置)之内变成不可点击状态#import"UIButton+BK.h"@
implementation
UIBu
演员新之助
·
2021-04-26 00:05
iOS 滑动上面的scrollView,将滑动事件传递给下面的scrollView
interfaceScr1:UIScrollView@property(nonatomic,copy)void(^isPointInsideHandle)(UIScrollView*scr);@end@
implementation
Scr1
jemmy_xl
·
2021-04-25 18:27
简单&易懂的ArrayList 源码分析(JDK 1.8)
目录捕获.PNG1.概述先来学习一下官方文档:Resizable-array
implementation
oftheListinterface.Implementsalloptionallistoperations
细雨蒙情
·
2021-04-25 18:40
Rx系列<第二十二篇>:RxJava之Android 第三方库AutoDispose使用
(2)添加依赖
implementation
'com.uber.autodispose:autodispose-android-archcomponents:1.0.0-RC
NoBugException
·
2021-04-25 15:33
UIButton
property(nonatomic,assign)UIEdgeInsetstouchAreaInsets;内部实现:#import#import"UIButton+TouchAreaInsets.h"@
implementation
UIButton
夜雨聲煩_
·
2021-04-25 10:53
传送门:http://blog.leichunfeng.com/blog/2015/06/26/objective-c-associated-objects-
implementation
-principle
永远都能
·
2021-04-25 09:15
9.23 数组Array
,如下:可变方法一:先定义_datas为可变的数组@interfaceViewController(){NSMutableArray*_datas;//定义_datas为可变数组}@end进行初始化@
implementation
ViewController
jayck
·
2021-04-25 07:13
【功能实现】实现点击状态栏tableView滚到顶部
tableView回到顶部的代码#import@interfaceXMGTopWindow:NSObject+(void)show;+(void)hide;@end#import"XMGTopWindow.h"@
implementation
XMGTopWindowstaticUIWindow
小子爱搞事
·
2021-04-25 07:04
UIPickerView选择器
interfaceViewController(){NSArray*_procinceArray;NSArray*_hebeiArray;NSArray*_henanArray;NSArray*_anhuiArray;}@end@
implementation
ViewController
yi叶知秋
·
2021-04-25 07:34
Objective C运行时(runtime)技术总结
class_getClassMethod:类方法class_copyIvarList:获取所有成员变量class_copyPropertyList:获取所有属性class_replaceMethod:修改类method_exchange
Implementation
s
GoGooGooo
·
2021-04-25 06:33
Android/Java内存泄露检测框架 LeakCanary
1.配置与使用(1)在build.gradle中加入引用dependencies{debug
Implementation
'com.squareup.leakcanary:leakcanary-android
瑟闻风倾
·
2021-04-25 06:54
iOS中弹簧动画Spring
慢动作下动画iOS动画.gif@
implementation
DZAnimatedController{UIView*_view1;UIView*_view2;UIView*_view3;BOOLselected
Dottie22
·
2021-04-25 05:26
Android实现轮播图效果
本文实例为大家分享了Android实现轮播图效果的具体代码,供大家参考,具体内容如下1.代码放在LinearLayout中,2.build.gradle中添加依赖//轮播图
implementation
'com.jude
·
2021-04-25 00:26
关于一些比较底层的名词解释
;在runtime里面通过以下方法获取:method_get
Implementation
(Methodm)
iOS程序员asdf
·
2021-04-24 14:54
NSTableView的简单使用示例
NSTableView和UITableView的使用上有些不同,步骤比较繁琐#import"ViewController.h"@interfaceViewController()@end@
implementation
ViewController
LeungKinKeung
·
2021-04-24 07:44
FMDB
staticShareData*fm=nil;staticFMDatabase*fmdb=nil;@
implementation
ShareData+(ShareData*)sharedata{staticdispatch_once_tonceToken
5斤8两
·
2021-04-24 06:49
点击按钮拨打电话封装
+(void)phoneDialButtonClick:(NSString*)phoneNumtarget:(id)target;@end.m文件#import"BXPhoneDialTool.h"@
implementation
BXPhoneDialTool
袁俊亮技术博客
·
2021-04-24 06:11
私有变量(上)
//如果只有方法的实现,没有方法的声明,那么该方法就是私有方法//在OC中没有真正的私有方法,因为OC是消息机制//私有变量:第一是用@private来修饰;第二直接写在点m文件中也就是@
implementation
A_好久不见
·
2021-04-24 03:07
iOS (反向)传值
OneViewController的实现:#import"OneViewController.h"#import"TwoViewController.h"@
implementation
OneViewController
goyohol
·
2021-04-24 01:36
AppDelegate添加前缀
1.打开你的Appdelegate.m把光标选中到@
implementation
AppDelegate后面,意思选中该类;2.点击Xcode的Editor->Refactor->Rename
_GXT
·
2021-04-24 00:30
消息推送
本地推送@
implementation
ViewController-(void)touchesBegan:(NSSet*)toucheswithEvent:(UIEvent*)event{/*@property
jfw9明42
·
2021-04-23 19:12
Java开源库
中时间类型的相互转换,时间使用Home:http://joda-time.sourceforge.net/官方文档:http://joda-time.sourceforge.net/apidocs/index.html
implementation
'joda-time
英俊的牙膏
·
2021-04-23 14:51
(五)设计模式之桥接模式
【GOF95】在提出桥梁模式的时候指出,桥梁模式的用意是"将抽象化(Abstraction)与实现化(
Implementation
)脱耦,使得二者可以独立地变化"。
CrixalisAs
·
2021-04-23 14:19
第02天OC语言(02):字符串基本使用
%@,%@就是专门输出对象类型的二、代码#import#import#pragmamark类@interfaceIPhone:NSObject-(NSString*)loadMessage;@end@
implementation
IPhone
liyuhong
·
2021-04-23 13:16
PyQt5实现界面(页面)跳转的示例代码
网上关于PyQt5的教程很少,特别是界面跳转这一块儿,自己研究了半天,下来和大家分享一下一、首先是主界面#-*-coding:utf-8-*-#Form
implementation
generatedfromreadinguifile'Form.ui
·
2021-04-23 12:42
iOS协议使用
interfaceViewController:UIViewController@end#import"ViewController.h"@interfaceViewController()@end@
implementation
ViewController
拥抱月亮的大星星
·
2021-04-23 11:22
category使用 objc_setAssociatedObject/objc_getAssociatedObject 实现添加属性
@interfaceNSObject(CategoryWithProperty)@property(nonatomic,strong)NSObject*property;@end@
implementation
NSObject
雨雪霏霏why
·
2021-04-23 05:05
iOS method swizzling 的姿势讨论
MSHookMessageEx这个API的介绍:Objective-C提供了好用的high_levelruntimeAPI,允许开发者使用class_getInstanceMethod,method_set
Implementation
Franky木下
·
2021-04-23 04:04
objc_setAssociatedObject
#import"ViewController.h"#importstaticcharalertInfoKey;@interfaceViewController()@end@
implementation
ViewController
Miss_chalk
·
2021-04-22 20:40
Android高德地图marker自定义弹框窗口
本文实例为大家分享了Android高德地图marker自定义弹框窗口的具体代码,供大家参考,具体内容如下最终效果:1.gradle里添加高德地图依赖
implementation
'com.amap.api
·
2021-04-22 19:37
block循环引用
interfaceDDDViewController()@property(nonatomic,copy)void(^block)();@property(nonatomic,strong)NSString*dog;@end@
implementation
DDDViewController
7dfa9c18c1d1
·
2021-04-22 18:55
Android实现验证码登录
具体内容如下结果展示1.导包1.1在项目的gradle中导入maven{url"https://www.jitpack.io"}1.2在model的gradle的dependencies导入//XUI项目
implementation
'com.github.xuexiangjys
·
2021-04-22 17:58
Block 之 __block的使用
@
implementation
ViewController//全局变量nameNSString*name=@"zhangsan";-(void)viewDidLoad{[superviewDidLoad
ychen3022
·
2021-04-22 14:16
排序-系统compare排序
//#import"ViewController.h"@interfaceViewController()@end@
implementation
ViewCont
CoderCurtis
·
2021-04-22 13:57
Day.02.24 UIView动画
import"ViewController.h"@interfaceViewController()//连线yellowView@property(weak,nonatomic)IBOutletUIView*yellowView;@end@
implementation
ViewController
挂树上的骷髅怪
·
2021-04-22 13:38
UIImagePickerController的使用
的使用第一步:设置info,开启权限@interfaceViewController()@property(weak,nonatomic)IBOutletUIImageView*imageView;@end@
implementation
ViewController
吃辣条也用酱
·
2021-04-22 12:38
iOS中MKMapView的使用
property(weak,nonatomic)IBOutletMKMapView*mapView;@property(nonatomic,strong)CLLocationManager*mgr;@end@
implementation
ViewController
JohnayXiao
·
2021-04-22 12:11
界面跳转及弹窗功能
import"AppDelegate.h"import"ViewController.h"@interfaceAppDelegate()@end@
implementation
AppDelegate(BOOL
ThEAll
·
2021-04-22 02:31
runtime运行时机制初探秘(三)使用篇
使用运行时修改系统自带的类的方法方法如下:voidmethod_exchange
Implementation
s(Methodm1,Methodm2);可以看到该方法传入了两个参数,都是Method类型的
呜啦啦啦拉拉
·
2021-04-22 00:19
KVO原理分析
一、KVO底层实现原理示例代码:@interfaceLGViewController()@property(nonatomic,strong)LGPerson*person;@end@
implementation
LGViewController
奉灬孝
·
2021-04-21 15:45
Android使用RollViewPager实现轮播图
记录Android中轮播图的学习与使用,供大家参考,具体内容如下1、build.gradle(:app)文件里面加依赖
implementation
'com.jude:rollviewpager:1.2.9'2
·
2021-04-21 11:21
Android实现用户圆形头像和模糊背景
实现用户圆形头像和模糊背景的具体代码,供大家参考,具体内容如下1、效果展示2、在build.gradle(Module)中的dependencies里面加入下面依赖注意:glide依赖的版本//图片加载框架
implementation
'jp.wasabeef
·
2021-04-21 11:20
UIView如何通过nextResponder响应链查找到所属的ViewController
given-a-view-how-do-i-get-its-viewcontrollerObjective-Ccategory:@interfaceUIView(mxcl)-(UIViewController*)parentViewController;@end@
implementation
UIView
思考的小妮子
·
2021-04-20 16:55
iOS笔记
automaticallyAdjustsScrollViewInsets属性详解www.raywenderlich.comiOS中使用RNCryptor对文件进行AES加密/解密RNCryptorAESfileformatwith
implementation
sinmanylanguage
4164fccdcf1c
·
2021-04-20 14:29
字典转换模型时,自动生成模型的属性字符串
需要新建一个模型,在模型里要挨个复制粘贴key,确定修饰类型解决思路:给字典建立一个分类,遍历字典,判断每一个值的类型,拼接上对应的修饰字符串,打印在控制台之后复制粘贴到模型的.h文件里,节约时间代码实现:@
implementation
NSDictionary
张俊凯
·
2021-04-20 13:53
php-fpm添加到自启动
/bin/sh#chkconfig:23451595#description:PHP-FPM(FastCGIProcessManager)isanalternativePHPFastCGI
implementation
奋斗live
·
2021-04-20 09:34
LitePal学习笔记
原文链接:https://www.jianshu.com/p/dd88ea95de061.配置1.1添加依赖//数据库
implementation
'org.litepal.android:core:2.0.0'1.2
Small_Cake
·
2021-04-20 04:44
一款简洁的文件选择器:CFileChooser
使用示例:首先在build.gradle文件中加入依赖
implementation
'com.livingwater:CFileChooser:1.0.0'使用示例代码:publicclassMainActivi
活水青年工作室
·
2021-04-20 02:26
ios自帶刷新UIRefreshControl的簡單使用
import"ViewController.h"@interfaceViewController()@property(nonatomic,strong)NSMutableArray*Logs;@end@
implementation
ViewController
IPFK
·
2021-04-20 00:04
上一页
82
83
84
85
86
87
88
89
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他