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
UIView(边框和弧度)
边框弧度UIView*view=[[UIViewalloc]initWithFrame:
CGRectMake
(100,100,100,200)];view.backgroundColor=[UIColorgrayColor
guaker
·
2020-07-12 07:46
UISearchController输入框颜色修改
:_searchDC=[[UISearchControlleralloc]initWithSearchResultsController:nil];_searchDC.searchBar.frame=
CGRectMake
FlowYourHeart
·
2020-07-12 05:29
MacOS学习三:NSOpenPanel调用文件选择器
NSButton*findBtn=[[NSButtonalloc]init];findBtn.title=@"添加文件";findBtn.frame=
CGRectMake
(230,CGRectGetMaxY
简鱼7819
·
2020-07-12 04:03
iOS笔记之UITextField
1、UITextField属性与方法//初始化textfield并设置位置及大小UITextField*text=[[UITextFieldalloc]initWithFrame:
CGRectMake
(
SuAdrenine
·
2020-07-12 04:45
WebView
1.签协议@interfaceViewController()2.创建webView_webView=[[UIWebViewalloc]initWithFrame:
CGRectMake
(0,20,375,647
李毅然
·
2020-07-12 03:07
UISearchBar-tableHeaderView
self.searchBar;-(UISearchBar*)searchBar{if(_searchBar==nil){_searchBar=[[UISearchBaralloc]initWithFrame:
CGRectMake
wbtuxi
·
2020-07-12 02:01
Masonry UIScrollView 动态高度
创建UIScrollViewUIScrollView*scrollView=[[UIScrollViewalloc]initWithFrame:
CGRectMake
(0,0,0,0)];[self.viewaddSubview
ilpanda
·
2020-07-12 00:20
iOS
博客园迁移(小白时代)-UITextView
一、基本属性//初始化并定义大小UITextView*textview=[[UITextViewalloc]initWithFrame:
CGRectMake
(20,10,280,30)];textview.scrollEnabled
Amy莫莫
·
2020-07-11 22:35
ios - 多线程之六:GCD串行
在之前的项目技术上,我们进行学习1:创建入口按钮//第三种方式GCDUIButton*btn2=[UIButtonbuttonWithType:UIButtonTypeCustom];btn2.frame=
CGRectMake
乐意先生
·
2020-07-11 21:37
一种新的表达
UIBarButtonItemalloc]initWithCustomView:({UIButton*btn=[UIButtonbuttonWithType:UIButtonTypeCustom];btn.frame=
CGRectMake
qq_28285625
·
2020-07-11 16:22
iOS
iOS 视图层次管理 sendSubviewToBack、bringSubviewToFront
/Doanyadditionalsetupafterloadingtheview,typicallyfromanib.UIView*view1=[[UIViewalloc]initWithFrame:
CGRectMake
杜甲同学
·
2020-07-11 15:08
iOS
ios UITextField缩进文本
代码:UILabel*label=[[[UILabelalloc]initWithFrame:
CGRectMake
(0,0,13,21)]autorelease];label.backgroundColor
Coding-lover
·
2020-07-11 14:09
ios
实战
UIScrollView和UIPageControl
只会和滚动视图结合使用-(void)viewDidLoad{[superviewDidLoad];UIScrollView*scrollview=[[UIScrollViewalloc]initWithFrame:
CGRectMake
每日总结
·
2020-07-11 14:24
去掉tabBar顶部线条
CGRectrect=
CGRectMake
(0,0,Screen_Width,Screen_Height);UIGraphicsBeginImageContext(rect.size);CGContextRefcontext
张家杰仔
·
2020-07-11 14:26
scrollView的bounds问题
UIScrollView*mainView=[[UIScrollViewalloc]initWithFrame:
CGRectMake
(0,navHeight,self.view.width,self.view.height
amds
·
2020-07-11 12:18
IOS界面开发使用viewWithTag:(int)findTag方法获取界面元素
:(int)findTag选择器定位界面元素的问题,以下把在界面中给元素打Tag,以及通过选择器查找界面元素的代码贴出来,供以后使用:界面元素打tag//事件监听的问题CGRectbtn2Frame=
CGRectMake
lixp3
·
2020-07-11 12:26
IOS
在 navigation 添加 居中 的 segmentControl
直接上代码://方法一:UIView*titleBGView=[[UIViewalloc]initWithFrame:
CGRectMake
(0,0,199,31)];titleBGView.backgroundColor
innepeace
·
2020-07-11 11:41
IOS UILabel 中 颜色混排
UILabel*colorLabel=[[UILabelalloc]init];colorLabel.frame=
CGRectMake
(0,100,200,100);colorLabel.textColor
JoeWcc
·
2020-07-11 08:11
UITableView中UITableViewStyleGrouped和UITableViewStylePlain的区别
_themeTable=[[UITableViewalloc]initWithFrame:
CGRectMake
(0,0,self.view.frame.size.width,self.view.frame.size.height
iOS_愛OS
·
2020-07-11 07:36
UIView的某几个角为圆角
UIView*view2=[[UIViewalloc]initWithFrame:
CGRectMake
(120,10,80,80)];view2.backgroundColor=[UIColorredColor
程序猿小武
·
2020-07-11 07:23
UITextField 控件详解 我见过的史上最牛x的
IOS/UITextFieldIOS-kaifa.htm//初始化textfield并设置位置及大小UITextField*text=[[UITextFieldalloc]initWithFrame:
CGRectMake
demingsz6590
·
2020-07-11 04:03
UISwitch - UISlider - UIDatePick - UISegmentedControl - UIPageControl 五合一
UISwitch简单示例//写个默认的背景,对比下开关设置的rectUIView*backgroundView=[[UIViewalloc]initWithFrame:
CGRectMake
(100,200,100,100
居然是村长
·
2020-07-11 03:26
iOS中UIImageView 添加UITapGestureRecognizer后传参
blog.csdn.net/sevenquan/article/details/50436290UIImageView*imageView=[[UIImageViewalloc]initWithFrame:
CGRectMake
油菜花花花花
·
2020-07-11 00:38
iOS Tips
开发中可能会用到的一些方法关于图片处理(UIImage)将颜色转化为图片-(UIImage*)createImageWithColor:(UIColor*)color{CGRectrect=
CGRectMake
Mr卿
·
2020-07-11 00:32
iOS CGRectInset、CGRectOffet的理解
UIView*view1=[[UIViewalloc]initWithFrame:
CGRectMake
(100,100,100,100)];view1.backgroundColor=[UIColorredColor
love_tableView
·
2020-07-10 21:53
2020-1-13
iOS点击文本查看内容-(void)viewDidLoad{[superviewDidLoad];UITextView*textView=[[UITextViewalloc]initWithFrame:
CGRectMake
wang937606063
·
2020-07-10 21:42
2018-06-22 解决IOS UITableView 滑不到最底部,总是被TabBar遮挡
.滑动到最底部回弹解决办法:1.将UITableView的高度减去底部TabBar的高度UITableView*_tableView=[[UITableViewalloc]initWithFrame:
CGRectMake
chengs
·
2020-07-10 17:38
iOS 动画
weakSelf.aniView.frame.origin.x+200.0f;CGFloaty=weakSelf.aniView.frame.origin.y+200.0f;weakSelf.aniView.frame=
CGRectMake
CaptainRoy
·
2020-07-10 14:35
iOS UIButton各类属性设置大全
UIButtonTypeCustom];设置一个圆角的按钮UIButton*button1=[UIButtonbuttonWithType:UIButtonTypeRoundedRect];按钮的位置坐标button1.frame=
CGRectMake
BearsG
·
2020-07-10 12:08
UIButton
iOS选项卡效果实现
实现效果:控件是如何使用的添加LMJTabDelegate代理LMJTab*tab=[[LMJTaballoc]initWithFrame:
CGRectMake
(10,50,300,30)lineWidth
JerryLMJ
·
2020-07-10 09:38
UIView坐标转换
buttonCGPointinSuperPoint=[senderconvertPoint:CGPointMake(10,10)toView:self.view];CGRectinSuperRect=[senderconvertRect:
CGRectMake
张小鱼爱吃鱼_呵呵
·
2020-07-10 08:01
iOS中 图文混排/自定义图文混排
指示根视图:(准备几张图片,把label加载在window上)[objc]viewplaincopyCustomLable*label=[[CustomLablealloc]initWithFrame:
CGRectMake
weixin_33951761
·
2020-07-10 08:51
iOS 修改导航栏文字
自定义导航栏文字:UILabel*title=[[UILabelalloc]initWithFrame:
CGRectMake
(0,0,100,44)];title.text=@"title3";title.textAlignment
16哥哥
·
2020-07-10 06:41
iOS 随意设置View的角为圆角
UIView*view2=[[UIViewalloc]initWithFrame:
CGRectMake
(120,10,80,80)];view2.backgroundColor=[UIColorredColor
Smallwolf_JS
·
2020-07-10 06:20
19-标题栏
标题按钮(3)标题按钮下的下划线代码:/***标题栏*/-(void)setupTitleView{//标题栏UIView*titleView=[[UIViewalloc]initWithFrame:
CGRectMake
小胖子2号
·
2020-07-10 05:13
012-自定义左右 按钮 btn
//首页定位-(void)customLeftBarButtonItem{UIButton*leftButton=[[UIButtonalloc]initWithFrame:
CGRectMake
(0,0,80,35
ArrQing
·
2020-07-10 04:25
3D立体相册,一个可旋转的立体相册
:AppStoregithub下载用的代码是用的云标签的code,代码略有改动主要代码调用//调用展示self.sphereView=[[YoungSpherealloc]initWithFrame:
CGRectMake
Python数据分析实战
·
2020-07-10 03:59
iOS
3D云相册
3D云标签
3D立体相册
3D球体
#UIButton#自定义UIButton
viewDidLoad{[superviewDidLoad];UIButton*button=[UIButtonbuttonWithType:UIButtonTypeCustom];button.frame=
CGRectMake
冷洪林
·
2020-07-10 01:59
图片裁剪 旋转 转换
myImageRect,截图的区域CGFloatimgW=self.cutimg.size.width;CGFloatimgH=self.cutimg.size.height;CGRectmyImageRect=
CGRectMake
DIOS2012
·
2020-07-10 01:39
百度地图个人小结
点击事件中分别写上如下方法即可实现:创建按钮://左边按钮UIButton*leftBtn=[UIButtonbuttonWithType:UIButtonTypeSystem];leftBtn.frame=
CGRectMake
高乔人
·
2020-07-10 01:11
ios OC 图片压缩
UIImage*)scaleToSize:(CGSize)size{//开启图片上下文UIGraphicsBeginImageContext(size);//渲染到上下文[selfdrawInRect:
CGRectMake
dicesc
·
2020-07-10 00:22
【iOS】滚动视图(UIScrollview)点视图(UIPageControl)
滚动视图UIScrollviewUIScrollView*scrollView=[[UIScrollViewalloc]init];scrollView.frame=
CGRectMake
(0,30,320,200
雨声不吃鱼
·
2020-07-09 21:28
Assertion failure in -[UICollectionView layoutSublayersOfLayer:]
先说下我遇到这个问题的情况:我是在view上创建了一个Collectionview,它本身的frame是直接用
CGRectMake
(0,0,SCREEN_WIDTH,SCREEN_HEIGHT-64)collectionview
菜鸟也有梦想的
·
2020-07-09 18:51
iOS
UINavigationController的那些事儿
有时候是占据整个屏幕的,即
CGRectMake
(0,0,Scre
Coulson_Wang
·
2020-07-09 17:02
委托与文本输入
UITextField示例代码:CGRecttextFieldRect=
CGRectMake
(40,70,240,30);UITextField*textField=[[UITextFieldalloc
对歌当酒
·
2020-07-09 13:24
iOS 控件阴影(shadow)不出现问题解决
self.backView=[[UIViewalloc]initWithFrame:
CGRectMake
(15,CGRectGetMaxY(self.withdrawButton.frame)+15,WIDTH
非洲胚胎
·
2020-07-09 12:27
iOS
开发小技巧
iosUIButton中调整image大小
最近做到有这种需求,要求按钮的点击范围比图片大,然后就想了一下,发现了一些细节问题,废话不多说直接上代码:self.leftBtn=[[UIButtonalloc]initWithFrame:
CGRectMake
Fantasy_Jun
·
2020-07-09 10:06
UIButton
iOS中 图文混排/自定义图文混排 作者:韩俊强
指示根视图:(准备几张图片,把label加载在window上)CustomLable*label=[[CustomLablealloc]initWithFrame:
CGRectMake
(0,60,self.window.bounds.size.width
weixin_33757911
·
2020-07-09 09:12
iOS 7之后更改导航栏字体颜色几种方法
岁数大了,记忆不行了,还是烂笔头靠谱,直接上代码,以备后期自己使用第一种:UILabel*title=[[UILabelalloc]initWithFrame:
CGRectMake
(0,0,200,44
软曼网
·
2020-07-09 07:10
iOS UILabel根据字符串长度自动适应宽度和高度
UILabel*label=[[UILabelalloc]initWithFrame:
CGRectMake
(0,0,0,0)];label.numberOfLines=0;label.backgroundColor
zhanghaibo369
·
2020-07-09 05:13
上一页
19
20
21
22
23
24
25
26
下一页
按字母分类:
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
其他