![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ios
执手年华
这个作者很懒,什么都没留下…
展开
-
ios scrollview添加点击事件,隐藏控件
今天在做一个项目的时候,遇到这样一个问题,我添加了一个scrollview这个控件,然后在这个控件上面有一个时间控件,我要实现的就是,当我点击空白处的时候,隐藏这个时间控件,以前的时候,没有scrollview的个控件在上面,所以使用的是-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event这种方法,但是今天加了s原创 2015-12-31 11:14:04 · 5543 阅读 · 0 评论 -
iOS开发UI篇—iOS开发中三种简单的动画设置
一、首尾式动画代码示例: // beginAnimations表示此后的代码要“参与到”动画中 [UIView beginAnimations:nil context:nil];//设置动画时长 [UIView setAnimationDuration:2.0]; self.headImageView.bounds = rec转载 2015-12-07 16:25:01 · 243 阅读 · 0 评论 -
颜色转换 IOS中十六进制的颜色转换为UIColor
#pragma mark - 颜色转换 IOS中十六进制的颜色转换为UIColor-(UIColor *) colorWithHexString: (NSString *)color{ NSString *cString = [[color stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewli转载 2015-12-07 17:25:36 · 254 阅读 · 0 评论 -
阳历转换成阴历的源代码(C和Objective-C)
转自: http://www.7880.com/Info/Article-5a83ff40.htmlC: 代码:/*------------农历转换函数-----------*/char *GetDayOf(PSYSTEMTIME pSt){ /*天干名称*/ const char *cTianGan[] = {"甲","乙","丙","丁"转载 2015-12-07 16:28:05 · 450 阅读 · 0 评论 -
ios 去掉NavigationBar下面的黑线
今天做项目过程中,使用NavigationBar,不过需要去掉下面的那条线,跟view保持一个整体,网上找了找资料,将解决的办法贴出来!if ([bar respondsToSelector:@selector( setBackgroundImage:forBarMetrics:)]){ NSArray *list=self.navigationController.转载 2015-12-07 17:42:22 · 294 阅读 · 0 评论