`
niCe
  • 浏览: 40413 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论
文章列表
     前段时间利用业余时间做了2个app,采用的模式为免费+广告。考虑到用户大多面向于国内,所以广告代理选的也是国内一家广告代理商。其实,我并不是一定就想要通过此手段去赚钱什么的,只不过想试试水而已。想了解下android平台下广告收益到底如何。没想到。。。结果令人失望啊。。。。        2个app都陆续发到了各个第三方的market上,2周后通过market上的下载数据可以看到有个app下载已经过W了。(虽然这不算多,可以说比较少,呵呵。但是我觉得还算一般了。。)每天填充率91%+,点击率才几个。。。。从market上用户的反馈来看,很多用户都抱怨说广告讨厌,应该去掉广告。可是 ...
参见:https://github.com/enormego/EGOTableViewPullRefresh
///////////////////////////////////////////////////////// /* input: The image and a tag to later identify the view */ @implementation UINavigationBar (CustomImage) - (void)drawRect:(CGRect)rect { UIImage *image = [UIImage imageNamed: @"title_bg.png"]; [image drawInRect:CGRectMake(0, ...
 给 TextView 加上圆角无疑会让界面更漂亮更有苹果味儿     #import <QuartzCore/QuartzCore.h> [self.content.layer setBackgroundColor:[[UIColor whiteColor] CGColor]]; [self.content.layer setBorderColor:[[UIColor grayColor] CGColor]]; [self.content.layer setBorderWidth:1.0]; [self.content.lay ...
1 随机数的使用        头文件的引用        #import <time.h>        #import <mach/mach_time.h>        srandom()的使用        srandom((unsigned)(mach_absolute_time() & 0xFFFFFFFF));        直接使用 random() 来调用随机数2 在UIImageView 中旋转图像        float rotateAngle = M_PI;        CGAffineTransform transform =CGAf ...
 UITableView 的 cell 默认出现在 uitableview 的第一行,如果你想自定义 UITableViewCell 与导航条间距的话,可以使用下面这行代码   tableview.tableHeaderView = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, 5, 20)]autorelease];  
NSIndexPath *indexPath = [NSIndexPath indexPathForRow: row inSection: 0]; NSArray *array = [NSArray arrayWithObject: indexPath]; [_playlistTableView reloadRowsAtIndexPaths: array withRowAnimation: UITableVie ...
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { [NSThread detachNewThreadSelector:@selector(startImageread:) toTarget:self withObject:indexPath]; } startImageread是获取照片的方法,我是从本地读取的 -(void)startImageread:(NSIndexPath *) ...
[NSScreen mainScreen].applicationFrame.size.height.....  
com.apple.Boot.plist 中 增加启动参数 :std_dyld=1,重启电脑,断点就可以用了
效果如图:     代码:
iPhone的NSString并不支持ansi的字符串(比如咱们常用的gb2312), 因此如果要读取的话, 需要转换为UTF-8的而iPhone上自带了libiconv库, 于是这个转换变的就比较简单了首先在工程的Framework部分加入 /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/usr/lib/libiconv.dylib当然, 中间那个iPhoneOS3.0.sdk需要换成你当前使用的SDK版本实际转换过程也就4步.1, 引入iconv库并添加头文件2, 利用iconv_open设置from ...
interface MySingleton : NSObject { ⇒① NSString *testGlobal; } + (MySingleton *)sharedSingleton; ⇒②@property (nonxxxx,retain) NSString *testGlobal; @end @implementation MySingleton ⇒③@synthesize testGlobal; + (MySingleton *)sharedSingleton { static MySingleton *sharedSingleton; ...
SettingViewController* settingView = [[SettingViewController alloc] initWithNibName:@"SettingViewController" bundle:nil]; CGRect rect = CGMakeRect(x,y,width,height); [settingView.view setFrame: rect]; [self.view addSubview:settingView.view];  
  代码如下:
Global site tag (gtag.js) - Google Analytics