- 浏览: 240573 次
- 性别:
- 来自: 北京
-
最新评论
-
windylel:
你的证书通过ca认证了吗?
iOS 7.1下itms-services在线安装失败的解决方法 -
lkocok2:
siruoxian 写道这个不是直接修改就可以。需要专门的服务 ...
iOS 7.1下itms-services在线安装失败的解决方法 -
zxy2543:
ssl验证必须通过什么机构认证吗?
iOS 7.1下itms-services在线安装失败的解决方法 -
zxy2543:
https://example.com/manifest.pl ...
iOS 7.1下itms-services在线安装失败的解决方法 -
siruoxian:
这个不是直接修改就可以。需要专门的服务器来支持。这个我已经验证 ...
iOS 7.1下itms-services在线安装失败的解决方法
文章列表
1.php代码
<?php
$iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_ECB);
$iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);
$key = 'a16byteslongkey!a16byteslongkey!';
$plaintext = "iphone";
$ciphertext = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $plaintext, ...
ios系统中各种设置项的url链接
- 博客分类:
- iphone
在代码中调用如下代码:(ps: ios 5.0 以后不可用)NSURL*url=[NSURL URLWithString:@"prefs:root=WIFI"];[[UIApplication sharedApplication] openURL:url];即可跳转到设置页面的对应项。[font=]About — prefs:root=General&path=AboutAccessibility — prefs:root=General&path=ACCESSIBILITYAirplane Mode On — prefs:root=AIRPLANE_MO ...
//创建一个基于位图的图形上下文并指定大小为CGSizeMake(200,400)UIGraphicsBeginImageContext(CGSizeMake(200,400)); //renderInContext 呈现接受者及其子范围到指定的上下文[self.view.layer renderInContext:UIGraphicsGetCurrentContext()]; //返回一个基于当前图形上下文的图片 UIImage *aImage = UIGraphicsGetImageFromCurrentImageContext(); //移除栈顶的基于当前位图的图形上下文UIGra ...
UIImage *image = [UIImage imageNamed:@"1.jpg"]; //图片名
- (UIImage*)imageWithImageSimple:(UIImage*)image scaledToSize:(CGSize)newSize
{
-(BOOL)isValidateEmail:(NSString *)email
{
Undefined symbols for architecture i386:
“_OBJC_CLASS_$_XXX”, referenced from:
objc-class-ref in XXX
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
原文出处:http://blog.sina.com.cn/s/blog_5920503a0100zbda.html
...
iOS Webapp的桌面图标及更新
- 博客分类:
- iphone
iOS允许网站开发者像NativeApp一样在iOS设备的主屏幕为其网站添加一个启动Icon,这个代表着网站的Icon在苹果官方开发者文档里被称为“Web Clip”,它的作用类似于桌面浏览器的书签,用户通过点击Icon能直接快速打开这个url的网站。
为了给某个网页或者整个网站指定一个漂亮的桌面启动图标,iOS Safari提供了两个私有接口: apple-touch-icon 和 apple-touch-icon-precomposed。
/ Apple-touch-icon
设置方法
通过在页面HTML的头部添加 <link> 标签<link rel=&q ...
iOS真机调试程序,报如下错误信息:failed to get the task for process XXX
解决方法如下:
证书问题,project和targets的证书都必须是开发证书,ADHOC的证书会出现此问题。
dyld: Library not loaded: /System/Library/Frameworks/Social.framework/Social
Referenced from: /var/mobile/Applications/00D3E0A7-4FF6-451E-B11C-87D7A189F425/sample.app/sample
Reason: image not found
把Build Phases 里Social.framework后边的选项修改成为Optional就可以了
1、首先在appDelegate中,把view添加到window中有两种方式、
[cpp] view plaincopy
+ (NSString *)replaceUnicode:(NSString *)unicodeStr {
NSString *tempStr1 = [unicodeStr stringByReplacingOccurrencesOfString:@"\u"withString:@"\\U"];
// NSString *tempStr1 = [unicodeStr stringByReplacingOccurrencesOfString:@"%u"withString:@"\\U" ...
It's a bug of simulator 5. After UIAlertView dismissed, press CMD+SHIFT+H, the bug occurs.
In fact, it doesn't occur in physical devices. So don't panic
原文:http://stackoverflow.com/questions/12924146/cfxpreferencessearchlistsource-trylock
+ (UIColor *) colorWithHexString: (NSString *) stringToConvert
{
NSString *cString = [[stringToConvert stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]] uppercaseString];
// String should be 6 or 8 characters
if ([cString length] < 6) retur ...
NSTimeZone *zone = [NSTimeZone defaultTimeZone];//获得当前应用程序默认的时区
NSInteger interval = [zone secondsFromGMTForDate:[NSDate date]];//以秒为单位返回当前应用程序与世界标准时间(格林威尼时间)的时差
NSDate *localeDate = [[NSDate date] dateByAddingTimeInterval:interval];
NSDate *nowDate=[NSDate dateWithTimeIntervalSin ...