09 2013 档案
摘要:电池状态栏。//方法一(代码设置):现在ios7已经更改为透明,并且不占用屏幕高度。其中隐藏及显示的方法如下:在uiviewcontroller的子类下,调用: if ([self respondsToSelector:@selector(setNeedsStatusBarAppearanceUpdate)]) { // iOS 7 [self prefersStatusBarHidden]; [self performSelector:@selector(setNeedsStatusBarAppearanceUpdate)]; }- (BOO...
阅读全文
摘要:做了一个单选勾选的表之前有些问题,修改了一下.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...
阅读全文
摘要:自定义一个跟随手指的小球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...
阅读全文
摘要:JSONKit有两个warning。// array->isa = _JKArrayClass;// warningobject_setClass(array, _JKArrayClass); // 更正dictionary->isa = _JKDictionaryClass;// warningobject_setClass(dictionary, _JKDictionaryClass);// 更正原因isa已经被废弃了,所以请调用object_setClass()和object_getClass()
阅读全文
摘要:1.当前View画成Image- (UIImage *) imageWithUIView:(UIView*) view{ UIGraphicsBeginImageContext(view.bounds.size); CGContextRef ctx = UIGraphicsGetCurrentContext();[view.layer renderInContext:ctx];UIImage* tImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); return tImage;}...
阅读全文

浙公网安备 33010602011771号