代码之家  ›  专栏  ›  技术社区  ›  Nick LaMarca

遍历NSArray

  •  3
  • Nick LaMarca  · 技术社区  · 15 年前

     for  (NSInteger *itemF in myNSArray) {
         //WHERE "slotA" is an NSInteger and "itemF" is stored as an NSString and I wanna conver to NSInteger 
         //and store is in the var.
         slotA=itemF;          
    }  
    
    1 回复  |  直到 15 年前
        1
  •  7
  •   Kevin Sylvestre    15 年前
    for (NSString *string in array)
    {
      NSInteger integer = [string integerValue]; 
    }