活跃的magnify glass效果开源项目
来源:互联网 发布:windows桌面壁纸 高清 编辑:程序博客网 时间:2024/06/05 14:30
magnifying 放大镜效果,在iOS的note以及其他的一些阅读类应用上,这个使用很平凡,而且看上去非常一致。
ACMagnifyingGlass is a magnifier like the one you can find in the notes iOS app when moving the cursor. 当鼠标/持续touch移动,放大镜把内容放大后显示
Install:
安装采用源代码方式,其中还有一个图作为资源,复制MagnifyingGlass 目录到你的当前项目。
Howto:使用
只要在你的view controller中创建 ACMagnifyingView view (可以是alloc/initWithFrame 或者从 nib文件) ,当你触摸屏幕, 放大镜会出现,放大显示所覆盖区域的view以及子view
It is possible to use a custom magnifier, like this:
ACMagnifyingGlass *mag = [[ACMagnifyingGlass alloc] initWithFrame:CGRectMake(0, 0, 120, 120)];mag.scale = 2;self.magnifyingView.magnifyingGlass = mag;
If you want a loupe like the real one:
ACLoupe *loupe = [[ACLoupe alloc] init];self.magnifyingView.magnifyingGlass = loupe;
有些时候,用户不希望在使用textview的时候出现上放的什么“copy”“select all”//
Copy, Cut, Select, Select 所有的功能多默认提供了,只要你持续touch并移动.
The easiest way is to create a subclass of UITextView that overrides the canPerformAction:withSender:
- (BOOL)canPerformAction:(SEL)action withSender:(id)sender { [UIMenuController sharedMenuController].menuVisible = NO; //do not display the menu [self resignFirstResponder]; //do not allow the user to selected anything return NO;}
HINT:https://github.com/acoomans/iOS-MagnifyingGlass- 活跃的magnify glass效果开源项目
- magnify
- 在 QT 程序里使用Vista的 Glass 背景效果
- 关于AERO glass效果 DwmEnableComposition
- 第一个Google Glass项目
- 怎样实现ZBrush中Magnify膨胀笔刷的应用
- Delphi窗体GlassFrame实现在win7下的Aero Glass效果
- 专访Project Glass项目经理Steve:Glass项目火热进行中
- 使用DWM实现Aero Glass效果
- 使用DWM实现Aero Glass效果
- MFC--使用DWM实现Aero Glass效果
- 使用DWM实现Aero Glass效果 .
- 使用DWM实现Aero Glass效果
- 使用DWM实现Aero Glass效果
- 使用DWM实现Aero Glass效果
- 10个最热JavaScript开源框架的社区活跃度对比
- 活跃自己的思想
- 【Google Glass应用开发】 2. 创建项目
- Java编程中“为了性能”尽量要做到的一些地方
- 计算字符串的相似度
- 在一个int数组里查找这样的数,它大于等于左侧所有数,小于等于右侧所有数。
- escape()、encodeURI()、encodeURIComponent()区别详解
- C语言之路 第零章
- 活跃的magnify glass效果开源项目
- C语言之路 第一章C语言简介
- windows server 2008下无法检查到无线信号的解决方法
- mex文件编程:Specified export _mexFunction is not defined
- js 连接url加参数
- C语言之路 第二章 判断控制结构
- C语言之路 第三章 循环控制结构
- Facebook like 按钮的语言设置
- codeforces B. Coins