09 2013 档案

摘要:电池状态栏。//方法一(代码设置):现在ios7已经更改为透明,并且不占用屏幕高度。其中隐藏及显示的方法如下:在uiviewcontroller的子类下,调用: if ([self respondsToSelector:@selector(setNeedsStatusBarAppearanceUpdate)]) { // iOS 7 [self prefersStatusBarHidden]; [self performSelector:@selector(setNeedsStatusBarAppearanceUpdate)]; }- (BOO... 阅读全文
posted @ 2013-09-29 09:59 Asial 阅读(1162) 评论(0) 推荐(0)
摘要:做了一个单选勾选的表之前有些问题,修改了一下.h文件@interface ViewController : UIViewController{ NSArray *arrry; NSInteger checkedIndexPath; }@end- (void)viewDidLoad{ [super viewDidLoad]; UITableView *atable=[[UITableView alloc] initWithFrame:CGRectMake(0, 0, 320, 350)]; atable.delegate=self; atable.dataS... 阅读全文
posted @ 2013-09-27 09:21 Asial 阅读(403) 评论(0) 推荐(0)
摘要:自定义一个跟随手指的小球DrawView.java文件import android.content.Context;import android.graphics.Canvas;import android.graphics.Color;import android.graphics.Paint;import android.util.AttributeSet;import android.view.MotionEvent;import android.view.View;public class DrawView extends View{ public float curr... 阅读全文
posted @ 2013-09-22 22:21 Asial 阅读(257) 评论(0) 推荐(1)
摘要:JSONKit有两个warning。// array->isa = _JKArrayClass;// warningobject_setClass(array, _JKArrayClass); // 更正dictionary->isa = _JKDictionaryClass;// warningobject_setClass(dictionary, _JKDictionaryClass);// 更正原因isa已经被废弃了,所以请调用object_setClass()和object_getClass() 阅读全文
posted @ 2013-09-17 18:57 Asial 阅读(280) 评论(0) 推荐(0)
摘要:1.当前View画成Image- (UIImage *) imageWithUIView:(UIView*) view{ UIGraphicsBeginImageContext(view.bounds.size); CGContextRef ctx = UIGraphicsGetCurrentContext();[view.layer renderInContext:ctx];UIImage* tImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); return tImage;}... 阅读全文
posted @ 2013-09-16 19:50 Asial 阅读(272) 评论(0) 推荐(0)