09 2012 档案

摘要:-(CGAffineTransform)getOrientation{ [[UIApplication sharedApplication] setStatusBarOrientation:UIDeviceOrientationLandscapeRight animated:YES]; UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation; if (orientation == UIInterfaceOrientationLandscapeLeft... 阅读全文
posted @ 2012-09-28 16:19 Maxfong 阅读(226) 评论(0) 推荐(0)
摘要:改写的AlertView,有弹出效果,点击任意位置关闭View。效果图:- (IBAction)didPressedClick:(id)sender{ alert = [[UIAlertView alloc] init]; alert.delegate = self; [alert addSubview:aView]; bView.layer.cornerRadius = 10; bView.layer.masksToBounds = YES; [bView.layer setShadowOffset:CGSizeMake(2, 1)]; [bView... 阅读全文
posted @ 2012-09-15 22:28 Maxfong 阅读(420) 评论(0) 推荐(0)
摘要:@interface Utility : NSObject{}//验证身份证是否有效+ (BOOL)checkIDCard:(NSString *)str;@end@interface Utility ()int checkIDfromchar (const char *sPaperId);@end@implementation Utility//验证身份证是否有效int checkIDfromchar (const char *sPaperId) { long lSumQT =0; int R[] ={7, 9, 10, 5, 8, 4, 2, 1, 6,... 阅读全文
posted @ 2012-09-04 16:00 Maxfong 阅读(412) 评论(0) 推荐(0)