• Objecttive-C各种问题


    1.invalid argument type 'void' to unary expression

     1 @try{
     2         if (![mJQFMDB open]) {
     3             NSLog(@"Could not open db.");
     4             return NO;
     5         }else {
     6             NSArray *mLineInfoAry = responseObject[@"Data"];
     7             if(mLineInfoAry != nil && mLineInfoAry.count > 0) {
     8                 for (NSDictionary *lineInfo in mLineInfoAry) {
     9                     
    10                 }
    11             }
    12             return YES;
    13         }
    14     }@catch(NSException *ex) {
    15         [TExUtils uploadEx:ex];
    16     }@finally {
    17         [mFMDB close];
    18     }
    View Code

    该类继承父类,父类成员变量如下:

    1 @interface BasicDataBase : NSObject {
    2     //成员变量
    3     @public
    4     FMDatabase *mFMDB;
    5     @public
    6     JQFMDB *mJQFMDB;
    7 }
    View Code
  • 相关阅读:
    Synchronized锁升级
    锁削除和锁粗化
    自旋锁
    Synchronized原理
    浅谈AQS原理
    JSON使用
    JSON语法
    Decode Ways
    String to Integer(atoi)
    Leetcode:Reverse Words in a String
  • 原文地址:https://www.cnblogs.com/royi123/p/7243059.html
Copyright © 2020-2023  润新知