`
siashuayongsheng
  • 浏览: 118021 次
  • 性别: Icon_minigender_1
  • 来自: 郑州
社区版块
存档分类
最新评论

NSInteger转化 NSString类型:

 
阅读更多
NSInteger转化 NSString类型:
 [NSString stringWithFormat: @"%d", NSInteger];
NSString转化 NSInteger类型:
NSInteger = [NSString intValue];
分享到:
评论

相关推荐

    15个梨分给5个人的组合算法

    把15个梨分给5个人,每人最少2个,最多5个的组合算法,返回一个数组 - (NSArray *)createRandomArrayForCount:(NSInteger)aCount min:(NSInteger)aMin max:(NSInteger)aMax people:(NSInteger)aPeople

    ios-点击图片查看大图.zip

    - (instancetype)initWithAllPhotosArray:(NSArray *)photosArr currentIndex:(NSInteger)currentIndex way:(NSInteger )way; 参数1:photosArr --- 保存URL的数组 @[@"URL1",@"URL2"] 参数2:currentIndex --- ...

    ios-文字自适应标签.zip

    - (id)initWithTotalTagsNum:(NSInteger)totalTagsNum viewWidth:(CGFloat)viewWidth eachNum:(NSInteger)eachNum Hmargin:(CGFloat)hmargin Vmargin:(CGFloat)vmargin tagHeight:(CGFloat)tagHeight ...

    不会说话的汤姆猫

    NSString *format=dict[@"imageFormat"]; NSInteger frames=[dict[@"frames"] integerValue]; NSMutableArray * imageList=[NSMutableArray array]; for (NSInteger i=0; i; i++) { NSString *fileName=...

    ios-MCAlart.zip

    [alart mcShowControllerAlartTitle:title ItmeNames:nil dataKey:nil ItmePlaceholders:pls showButtomAlert:buttom mcAlartReturnIndex:^(NSInteger mcItem, id data) { NSLog(@"收到值了---%ld-->%@",(long...

    01-加法计算器

    NSInteger result = num1Text.intValue + num2Text.intValue; // 改变文本框的值 self.resultLabel.text = [NSString stringWithFormat:@"%ld", (long)result]; // 退出键盘 // [self.num1TextField ...

    XBStepper:计数器

    XBStepper 一个数字的计数器 ##支持CocoaPods引入 pod 'JXBStepper' ##调用接口 /** * 设置block * * @param block ...- (void)setMaxValue:(NSInteger)max min:(NSInteger)min now:(NSInteger)now; ##创建代码

    iOS search

    -(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{ if (tableView == self.searchDisplayController.searchResultsTableView) { return [self.searchList count]; }...

    IOS开发中异步网络请求上实现同步逻辑

    IOS开发中异步网络请求上实现同步逻辑 前提: ...- (void)uploadFile:(NSArray *)imageArray atIndex:(NSInteger)index imagesCount:(NSInteger)count completeBlock:(uploadCompleteBlock)block {

    ios-DLCalender.zip

    _calendarView.calendarBlock = ^(NSInteger day, NSInteger month, NSInteger year){ NSString *dateString=[NSString stringWithFormat:@"%lu-%lu-%lu",year,month,day]; }; self.calendarView....

    实现折纸多层折叠效果

    (void)unfoldWithFolds:(NSInteger)folds duration:(CGFloat)duration completion:(void (^)(BOOL finished))completion; //有动画展开 (void)foldWithFolds:(NSInteger)folds duration:(CGFloat)duration ...

    tom猫游戏源码 iOS

    -(void) tomAnimationWithName:(NSString *) name count:(NSInteger) count { //如果动画正在播放就返回不执行 if (self.tom.isAnimating) { return; } //序列帧动画 播放一组图片 //指定动画图片的数组 ...

    ios-LLXAlertPop.zip

    [self.view createAlertViewTitleArray:arrayTitle textColor:color font:[UIFont systemFontOfSize:16] actionBlock:^(UIButton * _Nullable button, NSInteger didRow) { //获取点击事件 NSLog(@"%@,%ld",...

    仿网易自动循环广告,也可手动滑动

    imageView image [UIImage imageNamed:[NSString stringWithFormat:@"MQLADPlaceholderPic%d" i+1]]; [viewsArray addObject:imageView]; } self adView [[CycleADScrollView alloc] initWithFrame:...

    长按拖动排序

    // [btn setTitle:[NSString stringWithFormat:@"btn%ld",i] forState:UIControlStateNormal]; // btn.backgroundColor = [UIColor redColor]; // [stBtn.buttonArray addObject:btn]; // [btn addTarget:self ...

    一个计数器控件(自动拉伸)

    - (void)setMaxValue:(NSInteger)max min:(NSInteger)min now:(NSInteger)now; 创建代码 XBStepper* stepper = [[XBStepper alloc] initWithFrame:CGRectMake(60, 100, 200, 40)]; [stepper setMaxValue:10 min:-...

    NSString-BlockHelper:NSString + BlockHelper

    NSString-BlockHelper NSString + Block... NSInteger loc = word3.indexOf(word2); NSLog(@"%d",loc); //output : 6 NSString *word4 = @"word4"; NSString *word5 = @"word5"; NSLog(@"%@",word3.replace

    ios-一个对TZImagePickerController进行封装的工具TZImagePickerHelper.zip

    一个对TZImagePickerController进行封装的工具...调用[self.helper showImagePickerControllerWithMaxCount:(NSInteger )maxCount WithViewController: (UIViewController *)superController] 调用结束后,刷新界面;

    仅需几行代码实现方便易用的状态栏指示器

    我们在使用微博的时候经常会遇到状态指示器,想知道它是... [[XZMStatusBarHUD sharedXZMStatusBarHUD] showNormal:[NSString stringWithFormat:@有%ld条新的微博 ,count] position:64 animaDelay:0 configuration:^{

    PYDropMenu:PYDropMenu是适用于iOS的易于使用的菜单库

    ## PYDropMenu PYDropMenu是将拖放效果菜单添加到父视图的简便...- ( void )pyDropMenuDidButtonClick:(PYDropMenu*)dropMenu withIndex:( NSInteger )index andSubIndex:( NSInteger )subIndex; @optional - ( voi

Global site tag (gtag.js) - Google Analytics