摘要: 第一步:将ShareSDK导入到你的工程中然后需要在工程的AppDelegate.m中导入所需要的头文件比如:#import#import"WeiboApi.h"#import“WXApi.h"第二步:在下面方法中添加如下代码- (BOOL)application:(UIApplication*)a... 阅读全文
posted @ 2014-08-01 22:28 xubojoy 阅读(2709) 评论(0) 推荐(0) 编辑
摘要: -(void)addBtn{ NSArray*arr=[[NSArrayalloc]initWithObjects:@"未使用",@"已使用",@"已付款",@"退款",nil];for(inti=0;i>>>>>>>>%d",currentSelectButtonIndex);} 阅读全文
posted @ 2014-08-01 22:23 xubojoy 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 一、创建UITabBarController常见的在应用程序委托类的applicationDidFinishLaunching:方法中创建,这通常可为应用窗口提供根视图。// 创建一个UITabBarController对象UITabBarController *tabBarController =... 阅读全文
posted @ 2014-08-01 22:18 xubojoy 阅读(489) 评论(0) 推荐(0) 编辑
摘要: 客户端使用:合并分支到主分支上:前面放分支——————》master主分支githu常用命令git checkout -b cgi remotes/origin/cgi 切换到分支git push origin :test删除test分支原文:http://blog.csdn.net/sunboy_... 阅读全文
posted @ 2014-07-31 23:20 xubojoy 阅读(204) 评论(0) 推荐(0) 编辑
摘要: -(void)shareWork:(id)sender{ UIActionSheet *share = [[UIActionSheet alloc] initWithTitle:nil delegate:self cancelButtonTitle:@"关闭" destructiveButtonT... 阅读全文
posted @ 2014-07-29 14:56 xubojoy 阅读(567) 评论(0) 推荐(0) 编辑
摘要: 打印width和heightNSLog("width: %f, height: %f",self.View.frame.size.width, self.View.navigationBar.frame.size.height);打印frameNSLog(@"%@",[NSValue valueWi... 阅读全文
posted @ 2014-07-28 20:29 xubojoy 阅读(281) 评论(0) 推荐(0) 编辑
摘要: frame:指的是视图在父视图的坐标系统中的大小和位置。bound:指的是视图在试图本身的坐标系统中的大小(位置起点是原点)。center:指的是视图在父视图坐标系统中的中心点。贴张苹果官网的图:frame和bound的关系下面这是其中一个发生变化,其余两个的变化,直接看吧,很浅显。Although... 阅读全文
posted @ 2014-07-28 20:17 xubojoy 阅读(187) 评论(0) 推荐(0) 编辑
摘要: Core Graphics Framework是一套基于C的API框架,使用了Quartz作为绘图引擎。它提供了低级别、轻量级、高保真度的2D渲染。该框架可以用于基于路径的绘图、变换、颜色管理、脱屏渲染,模板、渐变、遮蔽、图像数据管理、图像的创建、遮罩以及PDF文档的创建、显示和分析。为了进一步从感... 阅读全文
posted @ 2014-07-26 23:36 xubojoy 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 1. 申请 App ID(1)连到 Developer 网页 ( http://developer.apple.com )。(2)进入 iOS Provisioning Portal。(3)点选左侧的 App IDs。(4)点选右上角的 New App ID。(5)Description : 输入 ... 阅读全文
posted @ 2014-07-25 11:57 xubojoy 阅读(189) 评论(0) 推荐(0) 编辑
摘要: //将NSData转化为NSString NSString* str = [[NSString alloc] initWithData:response encoding:NSUTF8StringEncoding];//将NSString 转化为NSData(NSString.h)- (NSDat... 阅读全文
posted @ 2014-07-24 19:43 xubojoy 阅读(141) 评论(0) 推荐(0) 编辑