`
文章列表
修改project-->targets-->build setiings-->Architecrures 中Architectures 为 $(ARCHS_STANDARD_32_BIT)   修改之后 可能会出现如下错误: malformed or corrupted AST file: 'Unable to load module "/Users/Lan_mac/Library/Developer/Xcode/Deri   解决方案 点击XCODE的菜单Window,然后选择Organizer,在弹出的对话框的最上面选择Projects 然后选择右 ...
    UIViewController *viewController = [[NSClassFromString(model.detailClassStr) alloc] init];       [self.navigationControllerpushViewController:viewController animated:YES];
//获取本地文件字节数 -(long long) fileSizeAtPath:(NSString*) filePath{     NSFileManager* manager = [NSFileManagerdefaultManager];     if ([manager fileExistsAtPath:filePath]){         return [[manager attributesOfItemAtPath:filePath error:nil] fileSize];     }     return 0;   }
- (UIViewController*)viewController {     for (UIView* next = [self superview]; next; next = next.superview) {         UIResponder* nextResponder = [next nextResponder];         if ([nextResponder isKindOfClass:[UIViewController class]]) {             return (UIViewController*)nextResponder;   ...
  ipad打开相册和调用摄像头的方法跟iPhone 不一样  用 UIPopoverController 显示   - (void) actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex{     AppDelegate *app = (AppDelegate *)[UIApplication sharedApplication].delegate;     if(buttonIndex==0){         //        拍照         UII ...
获取网络IP
获取手机唯一表示符

树状结构网络版

 
树状结构网络版   
    NSInvocationOperation *operation1 = [[NSInvocationOperationalloc]initWithTarget:self                                                                             selector:@selector(uploadImage)                                                                               object:nil];        ...
  - (void)viewDidLoad {     [super viewDidLoad];        UIToolbar *toolbar =[[UIToolbar alloc] initWithFrame:CGRectMake(0, 0, [[UIApplication sharedApplication] keyWindow].bounds.size.width, 40)];     toolbar.barStyle = UIBarStyleDefault;       UIBarButtonItem *spaceItemLeft = [[UIBarButton ...
一、全局宏定义        //系统版本号 #define SYS_VERSION [[[UIDevice currentDevice] systemVersion] floatValue] //颜色 #define UICOLORFROMRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/ ...
  - (void)viewDidLoad {     [super viewDidLoad];         UITableView *tableView = [[UITableView alloc] init];     tableView.frame = CGRectMake(0, 0, 320, 480);     tableView.delegate = self;     tableView.dataSource = self;     tableView.tableFooterView = [[UIView alloc] init];     [self.v ...
#pragma mark -webViewDelegate -(void)webViewDidFinishLoad:(UIWebView *)webView{         NSInteger webHeight = webView.scrollView.contentSize.height;     NSLog(@"webHeight1:%d", webHeight);     if (webHeight > SCREEN_HEIGHT) {         webHeight = SCREEN_HEIGHT - 108;     }     [w ...
一、需要导入UIImagePickerControllerDelegate,  UINavigationControllerDelegate  代理   二 、 @interface  FaceView()<UIActionSheetDelegate,UIImagePickerControllerDelegate,UINavigationControllerDelegate> {     UIButton *imageButton;   } @end   @implementation FaceView   - (id)initWithFrame:(CGR ...

监控键盘的高度

- (id)initWithFrame:(CGRect)frame {     self = [super initWithFrame:frame];     if (self) {         [self registerForKeyboardNotifications];      }     return self;   }   - (void) registerForKeyboardNotifications {     [[NSNotificationCenter defaultCenter] addObserver:self selector:@sel ...
Global site tag (gtag.js) - Google Analytics