小编RAG*_*poR的帖子

是否可以使用动画删除SuperSuperview?

我的程序上有2层是顶部和底部

如何删除顶层动画或顶层返回是否可能?

iphone

2
推荐指数
2
解决办法
5519
查看次数

UITableView样式分组中的自定义selectedBackgroundView出站

在此输入图像描述 使用UITableView Style Grouped后,使用带自定义颜色的selectedBackgroundView时会出现问题.

它在那里画UITableViewCell.是否有可能将它们绑定?

iphone uitableview ios

2
推荐指数
1
解决办法
1748
查看次数

如何在工具栏中平衡UIBarButtonItem的位置

是否可以平衡按钮的位置(Safari中的示例工具栏)?

    UIBarButtonItem *infoButton = [[UIBarButtonItem alloc] 
                                       initWithBarButtonSystemItem:UIBarButtonSystemItemCompose 
                                       target:self action:@selector(support:)];

        UIBarButtonItem *next = [[UIBarButtonItem alloc] 
                                       initWithBarButtonSystemItem:UIBarButtonSystemItemPlay 
                                       target:self action:@selector(support:)];
        [self.navigationController.toolbar setItems:[NSArray arrayWithObjects:infoButton, next,nil] animated:YES];
Run Code Online (Sandbox Code Playgroud)

替代文字

iphone uitoolbar

1
推荐指数
1
解决办法
2509
查看次数

需要建议NSClassFromString

根据这段代码,我不了解NSClassFromString

我怎么知道"viewControllerName"可以从其他来源使用它吗?

你能告诉我更多关于如何使用NSClassFromString的信息吗?

UIViewController *viewController = [[NSClassFromString(viewControllerName) alloc] init];
Run Code Online (Sandbox Code Playgroud)

iphone objective-c

1
推荐指数
1
解决办法
3879
查看次数

需要使用NSDate进行时间比较的建议

我正在开发闹钟.我想比较现在的时间和setTime.是否可以在几分钟内进行比较.

我的问题是NSDate会在几秒钟内进行比较,例如9:38:50不等于9:38:00.我怎么能在几分钟内比较?

iphone comparison nsdate

1
推荐指数
1
解决办法
964
查看次数

如何解决警告:'NSArray'可能无法响应'-objectForKey:'

警告:'NSArray'可能无法响应'-objectForKey:'

PicsCount = [[[results objectForKey:@"wallper"] objectForKey:@"total"] intValue];
Run Code Online (Sandbox Code Playgroud)

iphone warnings

1
推荐指数
2
解决办法
2334
查看次数

如何理解哪个属性适合NSDictionary,例如.保留还是分配?

现在我用

@property (nonatomic, retain) NSDictionary *currentAttribute;
Run Code Online (Sandbox Code Playgroud)

如果我使用copy或assign而不是retain,那么内存性能会有更大差异吗?

iphone properties objective-c nsdictionary ios

1
推荐指数
1
解决办法
1511
查看次数

在Xcode上编译错误

我该如何解决呢?

Ld build/Debug-iphonesimulator/iRadio.app/iRadio normal i386
cd /Users/ragopor/Desktop/iRadio
setenv MACOSX_DEPLOYMENT_TARGET 10.5
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.2.sdk -L/Users/ragopor/Desktop/iRadio/build/Debug-iphonesimulator -F/Users/ragopor/Desktop/iRadio/build/Debug-iphonesimulator -F/Users/ragopor/Desktop/iRadio -filelist /Users/ragopor/Desktop/iRadio/build/iRadio.build/Debug-iphonesimulator/iRadio.build/Objects-normal/i386/iRadio.LinkFileList -mmacosx-version-min=10.5 -framework MediaPlayer -framework Foundation -framework UIKit -framework CoreGraphics -o /Users/ragopor/Desktop/iRadio/build/Debug-iphonesimulator/iRadio.app/iRadio

ld: warning: in /Users/ragopor/Desktop/iRadio/MediaPlayer.framework/MediaPlayer, missing required architecture i386 in file
Undefined symbols:
  ".objc_class_name_MPMoviePlayerController", referenced from:
      literal-pointer@__OBJC@__cls_refs@MPMoviePlayerController in iRadioAppDelegate.o
  "_MPMoviePlayerContentPreloadDidFinishNotification", referenced from:
      _MPMoviePlayerContentPreloadDidFinishNotification$non_lazy_ptr in iRadioAppDelegate.o
  "_MPMoviePlayerScalingModeDidChangeNotification", referenced from:
      _MPMoviePlayerScalingModeDidChangeNotification$non_lazy_ptr in iRadioAppDelegate.o
  "_MPMoviePlayerPlaybackDidFinishNotification", referenced from:
      _MPMoviePlayerPlaybackDidFinishNotification$non_lazy_ptr in iRadioAppDelegate.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Run Code Online (Sandbox Code Playgroud)

iphone xcode iphone-sdk-3.0

0
推荐指数
1
解决办法
1278
查看次数

在字典中获取数字类型时的问题(iPhone)

这是我的plist和代码

> <plist version="1.0">
>     <dict>
>      <key>Title</key>
>      <string>News</string>
>      <key>icon</key>
>      <integer>0</integer>
>     </dict>
>     </plist>




int i = [dictionary objectForKey:@"icon"];
NSLog(@"%d",i);
Run Code Online (Sandbox Code Playgroud)

日志结果是81841904为什么它不是0?

iphone nsdictionary

0
推荐指数
1
解决办法
2203
查看次数

如何在单个UIView中淡化和淡出?

例如,我试图通过fadein将cell.accessoryView从picture1更改为picture2

但我的问题是我只有一个accessoryView(一个UIView)

任何的想法?

iphone uiview

0
推荐指数
2
解决办法
5658
查看次数