- 浏览: 238107 次
- 性别:
- 来自: 北京
最新评论
-
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在线安装失败的解决方法
文章列表
for(UIView *view in [self.view subviews]){ [view removefromsuperview];}
加载远程图片到 View
- 博客分类:
- iphone
NSURL *url=[NSURL URLWithString:@"http://..../Icons/icon.ico"];NSData *data=[NSData dataWithContentsOfURL:url];UIImage *tmpimage=[[UIImage alloc] initWithData:data];
UIImageView *imageview =[[UIImageView alloc] initWithFrame:CGRectMake(100, 100, 100, 100)];imageview.image=tmpimage;[self.vi ...
[[SimpleAudioEngine sharedEngine] playEffect:@"花田错.mp3"];
基于手机 网络环境问题 在UIWebView控件使用的时候,程序习惯添加UIActivityIndicatorView用以控制UIWebview的加载等待,在等待的时间内用户不允许操作,所以我们还要在当前的UIWebview上添加一个透明的view(opaqueview)用以防止用户点击, ...
每个程序都有方法:
[window makeKeyAndVisible];
由于iPhone是单窗口程序,所以也就只有这么一个Window对象,而且是UIWindow,不是NSWindow。而根据文档上所说:
“这个是便捷方法,去使被使用对象的主窗口显示到屏幕的最前端。你也可以使用hiddenUIView方法隐藏这个窗口”
所以基本上来说,对于编程者的区别仅仅在于在其前添加代码,或在其后添加代码。
//获取密码+ (NSString *) getPasswordForUsername: (NSString *) username andServiceName: (NSString *) serviceName error: (NSError **) error;//保存密码+ (void) storeUsername: (NSString *) username andPassword: (NSString *) password forServiceName: (NSString *) serviceName updateExisting: (BOOL) updateExisting e ...
//跳转到下一组controller
SelectLevelControllerView *_selectLevelControllerView=[[SelectLevelControllerView alloc] init]; [self.navigationController pushViewController:_selectLevelControllerView animated:NO]; [_selectLevelControllerView release];
//返回到顶级 controller
[self.navigationControll ...
in AppDelegate
- 博客分类:
- iphone
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. MenuControllerView *_menuControllerView=[[MenuControllerView alloc] init]; UINavigationController *_rootNavigationContr ...
AVAudioPlayer 应用小示例
- 博客分类:
- iphone
NSString *soundPath=[[NSBundle mainBundle] pathForResource:NSLocalizedStringFromTable([_dictionary objectForKey:@"sound"],[defaults stringForKey:@"language"],@"提示") ofType:@"mp3"]; NSURL *soundUrl=[NSURL fileURLWithPath:soundPath]; _player=[[AVAudioPlayer all ...
NSTimer 小示例
- 博客分类:
- iphone
[NSTimer scheduledTimerWithTimeInterval:0.5target:self selector:@selector(yourmethod) userInfo:nil repeats:NO]
NSString *_tmpStr=[NSString stringWithFormat:@"%@",[_mainDictionary objectForKey:@"Describe"]]; Label.text=NSLocalizedStringFromTable(_tmpStr,[defaults stringForKey:@"language"],@"注意内容");
跳转到下一个VIEW
- 博客分类:
- iphone
TestControllerView *_testControllerView =[[TestControllerView alloc] init]; [self.navigationController pushViewController:_testControllerView animated:NO]; [_testControllerView release];
UIView 用法示例
- 博客分类:
- iphone
[UIView beginAnimations:nil context:nil]; [UIView setAnimationDelay:0.8]; [UIView setAnimationDuration:6.5]; [UIView setAnimationCurve:UIViewAnimationCurveLinear]; [UIView setAnimationWillStartSelector:@selector(yourmethod)]; [UIView setAnimationDidStopSelector:@selector(yourmethod)]; [UIView ...
UIScrollView
- 博客分类:
- iphone
_scrollView=[[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, 1024, 768)]; _scrollView.directionalLockEnabled = YES; _scrollView.pagingEnabled = YES; [_scrollView setDelegate:self]; _scrollView.showsVerticalScrollIndicator = NO; _scrollView.showsHorizontalScrollIndicator = NO;