会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
菜鸟程序猿
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
4
5
6
7
8
9
10
11
12
···
19
下一页
2014年7月7日
iOS 3DES加密 和 java 3DES 解密
摘要: 首先进入头文件:#import #import #import #define kChosenDigestLength CC_SHA1_DIGEST_LENGTH #define DESKEY @"D6D2402F1C98E208FF2E863AA29334BD65AE1932A821...
阅读全文
posted @ 2014-07-07 09:27 菜鸟程序猿
阅读(876)
评论(0)
推荐(0)
2014年7月3日
IOS Main函数
摘要: int main(int argc, char * argv[]){ @autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); ...
阅读全文
posted @ 2014-07-03 10:51 菜鸟程序猿
阅读(394)
评论(0)
推荐(0)
2014年6月26日
[[UIScreen mainScreen] scale]详解
摘要: [[UIScreen mainScreen] scale]详解当屏幕分别为640x940时[[UIScreen mainScreen] scale]=2.0当屏幕分别为320x480时[[UIScreen mainScreen] scale]=1.0由于iphone 早起的设备都是屏幕分辨率是320...
阅读全文
posted @ 2014-06-26 15:52 菜鸟程序猿
阅读(2336)
评论(0)
推荐(0)
2014年6月25日
UIScreen类
摘要: CGRect screenBounds = [ [UIScreen mainScreen]bounds];//返回的是带有状态栏的Rect NSLog(@"%@", NSStringFromCGRect(screenBounds)); CGRect viewBounds = [ [U...
阅读全文
posted @ 2014-06-25 14:09 菜鸟程序猿
阅读(392)
评论(0)
推荐(0)
UIView 转 UIImage
摘要: 这个方法很实用,特别是在做水印相机得时候。。。- (UIImage*) imageWithUIView:(UIView*) view{ // 创建一个bitmap的context // 并把它设置成为当前正在使用的context UIGraphicsBeginImageCo...
阅读全文
posted @ 2014-06-25 09:37 菜鸟程序猿
阅读(417)
评论(0)
推荐(0)
2014年6月23日
UIImagePickerController显示中文界面
摘要: 1.Project-->Info-->Localizations添加Chinese2.修改Target-->Info-->Localization native development region : China
阅读全文
posted @ 2014-06-23 10:24 菜鸟程序猿
阅读(200)
评论(0)
推荐(0)
2014年6月12日
修改UITextField placeholder Color
摘要: [YourtextField setValue:[UIColor colorWithRed:97.0/255.0 green:1.0/255.0 blue:17.0/255.0 alpha:1.0] forKeyPath:@"_placeholderLabel.textColor"];
阅读全文
posted @ 2014-06-12 09:26 菜鸟程序猿
阅读(157)
评论(0)
推荐(0)
IOS6和IOS7 显示一样的SearchBar
摘要: if (isIOS7) { mySearchBar=[[UISearchBar alloc]initWithFrame:CGRectMake(0, 0, 320, 44)]; mySearchBar.autocorrectionType = UITextAutocor...
阅读全文
posted @ 2014-06-12 09:10 菜鸟程序猿
阅读(245)
评论(0)
推荐(0)
修改UISearchBar placeholder textColor
摘要: [[UILabel appearanceWhenContainedIn:[UISearchBar class], nil] setTextColor:[UIColor redColor]];
阅读全文
posted @ 2014-06-12 09:08 菜鸟程序猿
阅读(388)
评论(0)
推荐(0)
修改UISearchBar输入框字体颜色
摘要: UITextField *searchField = [mySearchBar valueForKey:@"_searchField"]; searchField.textColor = [UIColor blueColor]; //You can put any color here.
阅读全文
posted @ 2014-06-12 09:02 菜鸟程序猿
阅读(556)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
···
19
下一页
公告