小编use*_*951的帖子

为什么 - (void)tableView:(UITableView*)tableView willDisplayHeaderView:(UIView*)视图forSection :( NSInteger)部分未调用

- (void)tableView:(UITableView *)tableView willDisplayHeaderView:(UIView *)view forSection:(NSInteger)section
{
    [view vChangeBackgroundToCyan];
}
Run Code Online (Sandbox Code Playgroud)

[self.delegateForTableController.tvDelegated insertSections:[NSIndexSet indexSetWithIndex:ip.section] withRowAnimation:UITableViewRowAnimationRight];
Run Code Online (Sandbox Code Playgroud)

怎么叫他们?

iphone objective-c uitableview ios

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

SHDocVw.InternetExplorerMedium 和 SHDocVw.InternetExplorer 有什么区别?

一些答案似乎表明我应该使用 SHDocVw.InternetExplorerMedium 来实现 Internet Explorer 自动化。

Internetexplorer 媒体和 Internet Explorer 之间有什么区别?

我尝试运行此代码,但出现对象断开连接异常

            ias.IntExpMed = New SHDocVw.InternetExplorerMedium
            ias.IntExpMed.Navigate("http://wikipedia.com")
            waitTing(1)
            ias.IntExpMed.Navigate("http://google.com")
Run Code Online (Sandbox Code Playgroud)

实际上,如果我逐步执行该程序,该对象将在之后立即断开连接

            ias.IntExpMed.Navigate("http://wikipedia.com")
Run Code Online (Sandbox Code Playgroud)

vb.net automation shdocvw

5
推荐指数
0
解决办法
5582
查看次数

如何在Xcode 4中将视图转换为横向模式

在xcode 3中,视图标题旁边有一个小箭头.那个小按钮已经进入了xcode 4.

xcode landscape view interface-builder

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

在Xcode中观看表达式

说我在调试.说我需要知道[somevariable count]的值是多少

我该怎么办?

debugging xcode expression watch

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

iMac的位置经理

我正在使用CLLocationManager.

我收到了这个编译错误:

Ld /Users/Teguh/Library/Developer/Xcode/DerivedData/BadgerNew-bjopcgcgsjkcvcevflfbvsjwfgnu/Build/Products/Debug-iphonesimulator/BadgerNew.app/BadgerNew normal i386
    cd /Users/Teguh/Dropbox/badgers/BadgerNew
    setenv MACOSX_DEPLOYMENT_TARGET 10.6
    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/llvm-g++-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -L/Users/Teguh/Library/Developer/Xcode/DerivedData/BadgerNew-bjopcgcgsjkcvcevflfbvsjwfgnu/Build/Products/Debug-iphonesimulator -F/Users/Teguh/Library/Developer/Xcode/DerivedData/BadgerNew-bjopcgcgsjkcvcevflfbvsjwfgnu/Build/Products/Debug-iphonesimulator -filelist /Users/Teguh/Library/Developer/Xcode/DerivedData/BadgerNew-bjopcgcgsjkcvcevflfbvsjwfgnu/Build/Intermediates/BadgerNew.build/Debug-iphonesimulator/BadgerNew.build/Objects-normal/i386/BadgerNew.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -framework UIKit -framework Foundation -framework CoreGraphics -framework CoreData -o /Users/Teguh/Library/Developer/Xcode/DerivedData/BadgerNew-bjopcgcgsjkcvcevflfbvsjwfgnu/Build/Products/Debug-iphonesimulator/BadgerNew.app/BadgerNew

Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_CLLocationManager", referenced from:
      objc-class-ref in UtilitiesQuick.o
  "_kCLLocationAccuracyBest", referenced from:
      -[BNUtilitiesQuick init] in UtilitiesQuick.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
Run Code Online (Sandbox Code Playgroud)

那我该怎么编程CLLocationmanager呢?我的意思是,这意味着iMac上没有位置管理器吗?

xcode objective-c i386 cllocationmanager xcode4

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

核心数据中的关系同步

如果我们选择核心数据并点击某种关系.然后我去数据模型检查器.

有一个名为Relationship sync的部分.我想知道它是什么?我认为核心数据默认是同步关系.

例如,如果我执行employee.boss = someBoss,那么someBoss会自动将员工添加到他的Employees关系中,oldBoss会将员工从他/她的员工关系中移除.

那怎么来的?

默认情况下,禁用"关系同步"中"同步"项的默认值.所以正常的同步不可能.这是关于与服务器同步?

如果我分别选择属性和实体,我也会看到属性同步和实体同步.这他妈到底是什么?

xcode core-data objective-c

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

如何在iPhone中使用图像背景制作按钮?

我有一个圆形按钮,但我会让它有一个带图像的背景.

但是当我这样做时,通过将(what)属性设置为图像,按钮变为矩形,因为图像是矩形.如何保持按钮圆?

xcode objective-c uibutton ios4

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

如何检测iPhone xcode上的GPS /我们如何才能知道我们的应用程序不允许使用gps?

我想制作将使用GPS的应用程序,因为我们知道在第一次用户使用我们需要gps /当前位置的应用程序时,有一个要求许可的弹出窗口,问题是..示例:

用户选择不允许,然后我们如何知道用户使我们的应用程序无法访问她/他的gps以了解他/她的位置?因为我的应用程序需要CurrentLocation,所以如果我能够检测到用户选择的内容,我想要像第一个Pop Up那样再次请求权限.

或者我的应用程序可以打开/关闭gps的任何代码?

想象一下,如果用户不允许错误?我的应用程序是否需要重新设置用户?

当位置不可用时,Yelp应该做什么?

iphone xcode gps popup detect

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

如何NSLog调用功能

不是调用NSLog或Dlog的函数,而是调用该函数的函数.

我创建了一个类

+(void) computeTime:(void (^)())block
{
    NSDate * currentTime = [NSDate date];
    block();
    DLog ("Time Running is: %f", [[NSDate date] timeIntervalSinceDate:currentTime);
}
Run Code Online (Sandbox Code Playgroud)

因此,每当有一个操作我想测量它的时间时,我会把它放在一个块中.

并执行[Tools computeTime:^ {// operation}];

但是,我想知道调用computeTime的函数.我该怎么办?

xcode objective-c nslog

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

如何启用Guard Malloc

这是一个愚蠢的问题.文件说:

要使用Guard Malloc启用调试,请在运行项目之前在Xcode中选择Run> Enable Guard Malloc选项.使用此选项构建和运行应用程序会自动使用Guard Malloc库运行应用程序.您可以在Mac OS X应用程序中使用此选项,也可以在模拟器中运行的iPhone应用程序中使用此选项.

http://developer.apple.com/library/ios/#documentation/Performance/Conceptual/ManagingMemory/Articles/MallocDebug.html

所以是的,你去Run>启用Guard Malloc.没有运行菜单!!!!!

菜单是Xcode文件编辑视图导航编辑器产品窗口帮助

没有"运行"菜单.那我到底该怎么办?

malloc objective-c xcode4

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