willproud
码龄14年
关注
提问 私信
  • 博客:699,694
    社区:108
    699,802
    总访问量
  • 72
    原创
  • 1,713,870
    排名
  • 57
    粉丝
  • 0
    铁粉
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:英国
  • 加入CSDN时间: 2011-03-24
博客简介:

野草志

博客描述:
As you will.
查看详细资料
个人成就
  • 获得66次点赞
  • 内容获得44次评论
  • 获得157次收藏
  • 代码片获得170次分享
创作历程
  • 97篇
    2014年
  • 64篇
    2013年
  • 17篇
    2012年
  • 2篇
    2011年
成就勋章
TA的专栏
  • iOS
    55篇
  • Android
    45篇
  • Java
    31篇
  • Ruby on Rails
    20篇
  • 数字图像处理
    15篇
  • C++
    11篇
  • Javascript
    3篇
  • Ruby
    3篇
  • Eclipse
    2篇
  • 调试
    8篇
  • 学习
    3篇
  • 数据库
    5篇
  • SQL
    1篇
  • SQL Server
    1篇
  • windows
    1篇
  • Linux
    1篇
  • 色彩
    1篇
  • 网页
    5篇
  • Wordpress
    2篇
创作活动更多

如何做好一份技术文档?

无论你是技术大神还是初涉此领域的新手,都欢迎分享你的宝贵经验、独到见解与创新方法,为技术传播之路点亮明灯!

356人参与 去创作
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

iOS 为UIView设置点击监听事件

// In the view controller where you create the subviews// (not sure from your question, but I think you are adding image views to a scroll viewUIView *view = [[UIView alloc] init];UITapGestureReco
转载
发布博客 2014.08.14 ·
5026 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

iOS TableView横向滑动删除记录

首先,需要在跟tableview添加实现
转载
发布博客 2014.07.02 ·
1277 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Android 如何将一个button放在屏幕中间

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center|center_horizontal|center_ver
转载
发布博客 2013.09.30 ·
8139 阅读 ·
1 点赞 ·
3 评论 ·
2 收藏

彩色(RGB/HSV)&灰度 图像像素值读取并保存到txt文件

1 彩色图像输入:一副彩色图像rgb.bmp输出:D盘下的三个txt文件,分别为r.txt、g.txt、b.txt源码: /*===============================================// 功能:RGB读取并保存 时间:02/23/2012 SkySeraph //============================
转载
发布博客 2013.05.27 ·
3939 阅读 ·
1 点赞 ·
0 评论 ·
8 收藏

iOS UserInterfaceState.xcuserstate文件在Git版本控制中不能忽略

Git可能已经开始追踪这个文件在 gitignore docs 中:停止追逐现在已经追踪的文件,使用 git rm --cached。在你的情况下应该是:git rm --cached ProjectFolder.xcodeproj/project.xcworkspace/xcuserdata/myUserName.xcuserdatad/UserInterfa
翻译
发布博客 2014.12.10 ·
1945 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

iOS UITableView中异步加载图片 - 解决方案

问题背景:需要在UITableView中的每一行下载图片,之前使用placeholder,下载好后存在cache中。解决方案:方案一:使用SDWebImage:https://github.com/rs/SDWebImage如何安装及使用在git页面有详细解释,具体使用的代码:#import ...- (UITableViewCell *)tableView
原创
发布博客 2014.12.09 ·
6582 阅读 ·
1 点赞 ·
0 评论 ·
3 收藏

iOS 设置UITextView的margin,让scrollview的indicator在屏幕最右边

运行环境: iOS 7.0 以上,Xcode 6问题重述:显示一个UITextView,文字离左右两边有一定距离,但是scrollview的indicator是贴着文字的。需要将indicator置于屏幕边上,文字仍然与屏幕边相距一定距离。解决方案:步骤一:storyboard中将UITextView的约束leading space 和 trailing space设为0。步骤二:
转载
发布博客 2014.11.27 ·
2274 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

iOS "Xcode process launch failed: Security" in iPhone 6, iOS 8 -解决方案

问题重述:在iOS 8中第一次运行App,Xcode出现弹出框:“Xcode process launch failed: Security”解决方案:“If you get this, the app has installed on your device. You have to tap the icon. It will ask you if you reall
原创
发布博客 2014.11.14 ·
2845 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

iOS 在TabViewController中设置Tab Bar,且实现自定义

开发环境:Xcode 6.1 iOS 7.1.2 & iOS 8.1实现功能一,在打开APP时即显示第三个Tab对应的View;实现功能二,给每一个Tab设置图片和选中图片。- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOption
原创
发布博客 2014.11.08 ·
6809 阅读 ·
1 点赞 ·
0 评论 ·
1 收藏

iOS 在TabViewController中的一个ViewController跳转到另一个ViewController

步骤一:#import "AppDelegate.h"步骤二:在需要跳转的地方: AppDelegate *appDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate]; UITabBarController *tabViewController = (UITabBarContro
原创
发布博客 2014.11.07 ·
5139 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

iOS Core Data: 存储自定义对象 Save Custom NSObject

思路:将NSObject转化为NSData,然后将NSData存入到Core Data中现有两个自定义的类:Person和Birthday,都需要使用NSCoding,实现initWithCoder和encodeWithCoder两个方法。Core Data实现添加数据: AppDelegate *appDelegate = [[UIApplication sharedApp
原创
发布博客 2014.11.04 ·
2896 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

iOS "directory not found for option '-L/Users/.../Pods/build/Debug-iphoneos"解决方案

问题重述:在删掉原来工作空间,重新install pods之后,遇到warning:ld: warning: directory not found for option '-L/Users/.../Pods/build/Debug-iphoneos'解决方案:在Target-Build Settings中找到Search Paths-Library Search Path
原创
发布博客 2014.11.03 ·
22466 阅读 ·
1 点赞 ·
1 评论 ·
2 收藏

iOS "fatal error: malformed or corrupted AST file - Xcode"解决方案

运行项目时遇见问题:fatal error: malformed or corrupted AST file: 'Unable to load module "/Users/me/Library/Developer/Xcode/DerivedData/ModuleCache/XYZYIE6ZV0OP/Darwin.pcm": file not found' note: after modi
翻译
发布博客 2014.11.03 ·
1774 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

iOS "The sandbox is not in sync with the Podfile.lock"解决方案

更新Cocoapod之后出现问题:diff: /../Podfile.lock: No such file or directorydiff: Manifest.lock: No such file or directory error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or updat
原创
发布博客 2014.11.03 ·
42601 阅读 ·
4 点赞 ·
2 评论 ·
12 收藏

iOS 8 Apple Push Notification Service

Apple Configuration1. create Apple ID in Apple Developer Website2. check on "Push Notification" in the functionality3. configure for Push Notification in Development: create certificate3
原创
发布博客 2014.10.28 ·
1799 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

iOS iOS8中 问题"registerForRemoteNotificationTypes: is not supported in iOS 8.0 and later" 解决方案

问题重述:iOS 8中改变了通知注册的方式,如果App需要同时支持iOS 7 和 8 的话,需要首先检查selector。解决方案:在Xcode 6中- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions{ //--
原创
发布博客 2014.10.14 ·
6388 阅读 ·
0 点赞 ·
2 评论 ·
1 收藏

iOS 打印出视图中所有的子视图的名称

使用递归:- (void)listSubviewsOfView:(UIView *)view { // Get the subviews of the view NSArray *subviews = [view subviews]; // Return if there are no subviews if ([subviews count] == 0)
原创
发布博客 2014.10.10 ·
2848 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

iOS iOS应用PUSH功能的实现

1. push原理iOS push 工作机制可以用下图简要概括Provider:应用自己的服务器;APNS:Apple Push Notification Service的简称,苹果的PUSH服务器;push的主要工作流程是:iOS设备连接网络后,会自动与APNS保持类似TCP的长链接,等待APNS推送消息的到来;应用启动时注册消息推送,
转载
发布博客 2014.10.08 ·
1461 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

iOS 监测应用是否是第一次打开&监测应用是否已经更新

解决方案:在AppDelegate.h中的didFinishLaunchingWithOptions里面添加:- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ // Override point for custom
原创
发布博客 2014.09.25 ·
1336 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

iOS 在应用中播放本地视频文件

可以使用MPMoviePlayerController来播放本地视频文件1.添加 Mediaplayer framework 并且在viewcontroller中#import  2. 把视频文件拖拽到xcode中3. 获取文件存放的路径NSString*thePath=[[NSBundle mainBundle] pathForResource:@"yourVideo" of
翻译
发布博客 2014.09.25 ·
7222 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏
加载更多