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
CGRectMake
iOS 开发修改 searchbar 的背景颜色
/**先取消背景颜色*/-(UIImage*)imageWithColor:(UIColor*)colorsize:(CGSize)size{CGRectrect=
CGRectMake
(0,0,size.width
d晓峰
·
2020-07-01 23:49
iOS
searchbar
自定义
iOS-UISerachBar的基本设置
pragmamark-搜索框-(void)createSearchBar{_searchBar=[[UISearchBaralloc]initWithFrame:
CGRectMake
(0,0,375,44
亦晴工作室
·
2020-07-01 22:33
UITableView
end初始化//此处y轴设为64是44的NavigationBar+20的手机导航栏的高度UITableView*tableView=[[UITableViewalloc]initWithFrame:
CGRectMake
每日总结
·
2020-07-01 21:16
关于点击 button 让一个视图出现,松开后消失!
viewDidLoad{[superviewDidLoad];UIButton*button=[UIButtonbuttonWithType:UIButtonTypeCustom];button.frame=
CGRectMake
胡胡LoL
·
2020-07-01 20:45
UI手势识别器
pinch)拖拽(pan)//轻扫(swipe)屏幕边缘拖拽(screEdgePan)//图片UIImageView*imgView=[[UIImageViewalloc]initWithFrame:
CGRectMake
肉肉要次肉
·
2020-07-01 20:03
点击UITextview键盘弹出时,上移vc.view,出现的问题.
vc.view,出现的问题.之前为防止键盘挡住UITextView,我是这么做的:先注册了键盘的相关通知:self.myTextView=[[UITextViewalloc]initWithFrame:
CGRectMake
Fsn_soul
·
2020-07-01 19:47
一个贝塞尔曲线动画演示
IBAction)clickAction:(UIButton*)sender{//把图片加到view上UIImageView*imageView=[[UIImageViewalloc]initWithFrame:
CGRectMake
碧羽化屏
·
2020-07-01 18:28
iOS
iphone
动画
uiimageview
2016.12.03奇葩
1.cell.contenView加backView,创建backView必须_backView=[[UIViewalloc]initWithFrame:
CGRectMake
(0,16,DEVICE_WIDTH
碧玉小瑕
·
2020-07-01 18:02
UITextField使用全解
UITextField*text=[[UITextFieldalloc]init];text.frame=
CGRectMake
(20,20,100,40);[self.viewaddSubview:text
芮枫
·
2020-07-01 18:37
ios
IOS日历显示12个月
scrollView=[[UIScrollViewalloc]init];JXCalenderView*calenderView=[[JXCalenderViewalloc]initWithFrame:
CGRectMake
代码不多程序员
·
2020-07-01 18:06
oc
【UIScrollView】基本方法+基本描述
scrollView=[[UIScrollViewalloc]initWithFrame:
CGRectMake
(0,0,320,460)];scrollView.backgroundColor=[UIColorredColor
bahen0634
·
2020-07-01 17:50
iOS 打开本地或下载excel文件
_webView){ _webView=[[UIWebViewalloc]initWithFrame:
CGRectMake
(0,0,SCREEN_WIDTH,SCREEN_HEIGHT)];
applexiaozhu
·
2020-07-01 17:34
ios
iOS控件之UIScrollView
创建UIScrollView*scrollView=[[UIScrollViewalloc]initWithFrame:
CGRectMake
(50,50,200,800)];基础属性//背景色scrollView.backgroundColor
anita11111
·
2020-07-01 17:03
截屏的代码操作
UIGraphicsBeginImageContext(CGSizeMake(view.frame.size.width,view.frame.size.height));[viewdrawViewHierarchyInRect:
CGRectMake
大牛的征程
·
2020-07-01 16:45
iOS开发
【学习ios之路:UI系列】(UISearchBar,UISearchDisplayController) 和UISearchController(iOS8新特性)
1.UISearchBar(效果如下:)①创建UISearchBar对象//初始化,定义frameUISearchBar*bar=[[UISearchBaralloc]initWithFrame:
CGRectMake
梦想的天空格外蓝
·
2020-07-01 15:49
iOS-UI系列
iOS使用NSMutableAttributedString改变字符串中部分文字的字体颜色或大小
//创建一个文本标签UILabel*yyLabel=[[UILabelalloc]initWithFrame:
CGRectMake
(0,200,300,500)];yyLabel.numberOfLines
我079
·
2020-07-01 15:26
OC
富文本
UI控件
UILabel 添加圆角时避免离屏渲染
经过一番尝试发现需要调整设置圆角的代码:UILabel*label=[[UILabelalloc]initWithFrame:
CGRectMake
(0,0,100,20)];label.layer.cornerRadius
eversterd
·
2020-07-01 14:12
UIView的部分圆角问题
设置UIView部分圆角UIView*view2=[[UIViewalloc]initWithFrame:
CGRectMake
(120,10,80,80)];view2.backgroundColor=
WANGYURUI_wyr
·
2020-07-01 14:24
iOS开发
UILabel+UIImageView(动画)
self.windowaddSubview:label];☐UILabel的属性①把label对象实例化,并设置fram(任何对象都要实例化)UILabel*label=[[UILabelalloc]initWithFrame:
CGRectMake
泡泡木
·
2020-07-01 14:20
Objective—C
IOS--UIView 视觉效果:圆角、阴影、边框、渐变光泽
Doanyadditionalsetupafterloadingtheview,typicallyfromanib.UIView*myView=[[UIViewalloc]initWithFrame:
CGRectMake
遇见更好的自己_Steve
·
2020-07-01 13:10
iOS
实时监听textField输入中文内容的时候拼音,拼音不跟着响应
拼音不跟着响应-(void)viewDidLoad{[superviewDidLoad];UITextField*textField=[[UITextFieldalloc]initWithFrame:
CGRectMake
QL_ProCareer
·
2020-07-01 12:56
iOS开发
贝塞尔曲线绘制人脸框(框内全透明,框外半透明)
/www.jianshu.com/p/c883fbf52681//贝塞尔曲线画4个弧度UIBezierPath*path=[UIBezierPathbezierPathWithRoundedRect:
CGRectMake
精神薇
·
2020-07-01 11:24
iOS之UILabel换行符\n
UILabel*tips=[[UILabelalloc]initWithFrame:
CGRectMake
(20,16,kWidth-20,45)];[tipssetTextColor:[UIColorgrayColor
LVXIANGAN
·
2020-07-01 11:25
iOS
自定义UITextField
implementationWZTextField//修改文本展示区域,一般跟editingRectForBounds一起重写-(CGRect)textRectForBounds:(CGRect)bounds{CGRectinset=
CGRectMake
EasyNzw
·
2020-07-01 11:15
让Label竖着显示
implementationViewController-(void)viewDidLoad{[superviewDidLoad];UILabel*rotateLable=[[UILabelalloc]initWithFrame:
CGRectMake
维庆
·
2020-07-01 10:29
UIButton文字居左显示
创建UIButtonUIButton*button=[[UIButtonalloc]init];//设置坐标button.frame=
CGRectMake
(100,100,100,50);//设置标题[
奋斗的蜗牛
·
2020-07-01 09:56
Swift UIButton、UIImageView、元组、流程控制、标签
创建UIButton、UIImageViewletbtn=UIButton()btn.frame=
CGRectMake
(100,100,100,100)btn.backgroundColor=UIColor.redColor
chayc
·
2020-07-01 08:35
ios - 多线程之八:GCD线程组
常用方法注意事项:使用线程组的方法来创建任务是没有同步任务的,创建按钮入口UIButton*btn5=[UIButtonbuttonWithType:UIButtonTypeCustom];btn5.frame=
CGRectMake
文字一场
·
2020-07-01 05:47
多线程
ios
GCD
线程组
ios - 多线程之六:GCD串行
在之前的项目技术上,我们进行学习1:创建入口按钮//第三种方式GCDUIButton*btn2=[UIButtonbuttonWithType:UIButtonTypeCustom];btn2.frame=
CGRectMake
文字一场
·
2020-07-01 05:47
多线程
ios
GCD
iOS label的换行符\n
UILabel*label=[[UILabelalloc]initWithFrame:
CGRectMake
(20,450,320-20,45)];[labelsetTextColor:[UIColorblackColor
编织人生_程就未来
·
2020-07-01 04:09
iOS
-
UIKit框架
iOS UILabel、UIButton文字竖排显示
-(void)viewDidLoad{[superviewDidLoad];方法一:UILabel*label=[[UILabelalloc]initWithFrame:
CGRectMake
(0,100,25,200
编织人生_程就未来
·
2020-07-01 04:09
iOS
-
UIKit框架
UI之UILabel和UIImageView
的基本属性和风格化1.UILabel的基本属性UILabel继承自UIView类,我们通过UILabel来对文字进行操作UILabel*label=[[UILabelalloc]initWithFrame:
CGRectMake
cherry_1024
·
2020-07-01 03:07
iOS开发 字符串中截取关键字并给他设置颜色
UILabel*contentLabel=[[UILabelalloc]initWithFrame:
CGRectMake
(20,100,300,200)];contentLabel.textColor=
liu_wentao
·
2020-07-01 03:45
iOS
开发
Xcode常用代码块
没有添加过代码块,那你是找不到这个文件夹的)~/Library/Developer/Xcode/UserData/CodeSnippetsUILabel*=[[UILabelalloc]initWithFrame:
CGRectMake
曹老师8428
·
2020-07-01 03:12
UIScrollView 基本属性 及 常用代理方法
-(void)viewDidLoad{[superviewDidLoad];scrollView=[[UIScrollViewalloc]initWithFrame:
CGRectMake
(0,0,320,460
0o低调o0
·
2020-07-01 02:19
UIScrollView
iOS view的圆角和阴影并存
UIView*v=[[UIViewalloc]initWithFrame:
CGRectMake
(10,10,100,100)];v.backgroundColor=[UIColoryellowColor
0o低调o0
·
2020-07-01 02:49
cornerRadius
layer
shadow
masksToBounds
UIImageView
图片控件1`创建图片控件实例self.imageview=[[UIImageViewalloc]initWithFrame:
CGRectMake
(0,0,500,500)];2`放置用于被显示的图片数据
哇次哟累
·
2020-07-01 01:26
UIButton
UIButtonbuttonWithType:UIButtonTypeCustom];:>注意:设置按钮的类型只能在初始化的时候设置->UIButtonTypeCustom2设置Framebutton.frame=
CGRectMake
vip4iPhonr
·
2020-07-01 01:38
Swift与OC的区别
OCUIView*redView=[[UIViewalloc]initWithFrame:
CGRectMake
(0,30,100,100)];redView.backgroundColor=[UIColorredColor
浩瀚海洋里的木头
·
2020-07-01 01:57
NavigationBar
NavigationBar加left,这些控件本身只能在固定位置上写入代码UIImage*backImage=[UIImageimageNamed:@"nav_order_more"];CGRectbackframe=
CGRectMake
王老板
·
2020-07-01 00:44
iOS:指纹识别(Touch ID)的简单应用
[selfsetupNotification];UIButton*button=[[UIButtonalloc]initWithFrame:
CGRectMake
青灯古魔
·
2020-07-01 00:51
iOS学习
收藏按钮的点击效果
先建个结构体属性:{inti;UIButton*button;}创建个按钮:button=[[UIButtonalloc]initWithFrame:
CGRectMake
(100,300,20,20)]
醉梦年华笑沧桑
·
2020-06-30 23:40
ios退出APP实现
;UIWindow*window=app.window;[UIViewanimateWithDuration:1.0fanimations:^{window.alpha=0;window.frame=
CGRectMake
H_A_N
·
2020-06-30 21:07
iOS 图片相关处理
image1toImage:(UIImage*)image2{UIGraphicsBeginImageContext(image1.size);//Drawimage1[image1drawInRect:
CGRectMake
T_label
·
2020-06-30 20:57
UIImageView border 黑边
CAShapeLayer*circleShape=[CAShapeLayerlayer];circleShape.path=[UIBezierPathbezierPathWithOvalInRect:
CGRectMake
ReidWang
·
2020-06-30 19:16
CALayers 实现带圆角和阴影的图片
如下代码:UILabel*lable=[[UILabelalloc]initWithFrame:
CGRectMake
(0,0,100,30)];lable.text=@"测试测试";[self.viewaddSubview
zkq1989
·
2020-06-30 18:27
ios
swift - 懒加载
lazyvarlabel1:UILabel={letlabel1=UILabel.init(frame:
CGRectMake
(30,30,200,50))labe
风___________
·
2020-06-30 18:55
iOS-跑马灯效果
scrollAnimation{CGRectmainRect=[[UIScreenmainScreen]bounds];UIView*bgView=[[UIViewalloc]initWithFrame:
CGRectMake
FlyElephant
·
2020-06-30 14:09
用WebView加载本地图片的方法
void)setWebView{self.view.backgroundColor=grayBGColor;UIWebView*webView=[[UIWebViewalloc]initWithFrame:
CGRectMake
zhanglizhi111
·
2020-06-30 14:59
iOS
UIWebView
iOS 画虚线的重新理解
效果如图完整代码如下:UIImageView*iView=[[UIImageViewalloc]initWithFrame:
CGRectMake
(0,100,self.view.frame.size.width
小灰是蜗牛君
·
2020-06-30 13:38
oc
上一页
22
23
24
25
26
27
28
29
下一页
按字母分类:
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
其他