围绕着某一块特定区域显示(箭头指定那块特定区域) - (void)presentPopoverFromRect:(CGRect)rect inView:(UIView *)view permittedArrowDirections:(UIPopoverArrowDirection)arrowDire ...
分类:
其他好文 时间:
2016-04-29 21:45:04
阅读次数:
174
我们在网站上总能见到这样的效果,若是有图片,图片都是先用loading加载一小段时间,然后紧接着出来要显示的图片,即效果如下: v2_loading.gif,几秒钟时间过渡到v2_pic_01_s.jpg这样,这就是图片延时加载。具体实现技术如下:1)引入jquery库文件;2)引入jquery.....
分类:
Web程序 时间:
2015-03-11 17:02:20
阅读次数:
256
方法一:
用UIWebView就可以了
-(void)loadDocument:(NSString*)documentName inView:(UIWebView*)webView
{
NSString *path = [[NSBundle mainBundle] pathForResource:documentName ofType:nil];
NSURL *url =...
分类:
其他好文 时间:
2015-01-29 12:49:34
阅读次数:
226
方法一:利用webview
-(void)loadDocument:(NSString *)documentName inView:(UIWebView *)webView
{
NSString *path = [[NSBundle mainBundle] pathForResource:documentName ofType:nil];
N...
分类:
其他好文 时间:
2015-01-22 09:30:44
阅读次数:
182
- (BOOL)isInScreenView:(UIView *)inView withRect:(CGRect)rect{
return CGRectIntersectsRect(inView.frame, rect);
}...
分类:
其他好文 时间:
2014-12-09 12:21:28
阅读次数:
156
有时候做UI的时候,比如需要判断scrollView中一个btn是否显示在屏幕上,可以用以下代码:
#pragma mark - 返回一个View所在的位置x,y,是否在rect坐标里面
- (BOOL)isInScreenView:(UIView *)inView withRect:(CGRect)rect{
return CGRectIntersectsRect(inView.fra...
分类:
移动开发 时间:
2014-12-09 09:23:31
阅读次数:
456
//获取快照- (UIView*)customSnapshotInView:(UIView*)inview{ UIView *snapshot = [inview snapshotViewAfterScreenUpdates:YES]; snapshot.layer.shadowColo...
分类:
其他好文 时间:
2014-08-18 15:55:32
阅读次数:
222
#import @interface DPopoverView : UIView+ (void)showPopoverAtPoint:(CGPoint)point inView:(UIView *)view withContentView:(UIView *)cView;- (void)showPo...
分类:
其他好文 时间:
2014-07-23 12:42:36
阅读次数:
264
今天一位童鞋问我个问题,大意是popoverController不会显示。经过我寻找问题发现下面这个方法不好掌控。为什么说他不好掌控那。我这个给大家带来一个列子,通过这个列子来介绍PopoverController的详细用法,以及这个方法的2中传参技巧。
- (void)presentPopoverFromRect:(CGRect)rect inView:(UIView *)view per...
分类:
其他好文 时间:
2014-07-10 23:17:25
阅读次数:
257
//利用CATransition来作模拟//模拟Push- (void)pushView:(UIView *)pushView inView:(UIView *)inView{ CATransition *animation = [CATransition animation]; ani...
分类:
其他好文 时间:
2014-06-27 14:41:15
阅读次数:
178