我已经存档了好几个月的临时分发,今天突然我不能这样做,因为存档菜单项被禁用.我没有改变任何事情.我完成了项目的配置设置,看起来没问题.
我的Ad Hoc个人资料即将在14天后过期.这可能是问题吗?我不相信我可以续约,直到它到期.我在组织者的临时配置文件中有一个"续订"按钮,但是当我点击它时,我得到...
在配置门户上找不到给定的配置文件.在尝试续订"MyAddHocProfile"之前,请刷新您的配置文件
配置门户中的配置文件显示活动,30日到期.我注意到我还没有升级到4.6.2并且这样做了.然后我下载了我的个人资料,然后双重认为这会刷新Xcode中的个人资料,仍然没有喜悦.我还尝试手动替换库中的配置文件MyAddHocProfile.mobileprovision.
他们的意思是"刷新您的配置文件"?
即便如此,我认为只要配置文件处于活动状态,我就可以创建存档.我一定是做错了什么.
谢谢,
约翰
我试图使用NSNotificationCenter将NSDictionary表单UIView传递给UIViewController.字典在发布通知时工作正常,但在接收方法中,我无法访问字典中的任何对象.
这是我如何创建字典并发布通知...
itemDetails = [[NSDictionary alloc] initWithObjectsAndKeys:@"Topic 1", @"HelpTopic", nil];
[[NSNotificationCenter defaultCenter] postNotificationName:@"HotSpotTouched" object:itemDetails];
Run Code Online (Sandbox Code Playgroud)
在UIViewController中,我正在设置观察者......
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(hotSpotMore:)
name:@"HotSpotTouched"
object:nil];
Run Code Online (Sandbox Code Playgroud)
出于测试目的,hotSpotMore看起来像这样......
- (void)hotSpotMore:(NSDictionary *)itemDetails{
NSLog(@"%@", itemDetails);
NSLog(@"%@", [itemDetails objectForKey:@"HelpTopic"]);
}
Run Code Online (Sandbox Code Playgroud)
第一个NSLog工作正常,显示字典的内容.第二个日志抛出以下异常......
[NSConcreteNotification objectForKey:]: unrecognized selector sent to instance 0x712b130
Run Code Online (Sandbox Code Playgroud)
我不明白为什么我无法访问传递的字典中的任何对象.
在此先感谢您的帮助.
约翰
我将一个工作的viewcontroller类从另一个项目复制到一个新项目中.我无法在新项目中加载视图.在旧项目中,我使用了presentModalViewController.在新的我无法使用presentModalViewController或presentViewController加载视图
我正在尝试从主视图控制器加载当前视图.
这是我的主视图控制器界面的样子......
// ViewController.h
#import <UIKit/UIKit.h>
#import "RequestDialogViewController.h"
@interface ViewController : UIViewController <RequestDialogViewControllerDelegate> {
}
- (void)requestDialogViewDidDismiss:(RequestDialogViewController *)controller withResponse:(NSString*)response;
Run Code Online (Sandbox Code Playgroud)
我正在使用这样的presentModalViewController ......
RequestDialogViewController *requestIPViewController = [[RequestDialogViewController alloc] initWithNibName:@"RequestDialogViewController" bundle:nil];
navigationController = [[UINavigationController alloc] initWithRootViewController:requestIPViewController];
[self presentModalViewController:navigationController animated:YES];
Run Code Online (Sandbox Code Playgroud)
和presentViewController这样......
RequestDialogViewController *requestIPViewController = [[RequestDialogViewController alloc] initWithNibName:@"RequestDialogViewController" bundle:nil];
[self presentViewController:requestIPViewController animated:YES completion:nil];
Run Code Online (Sandbox Code Playgroud)
我在新项目中缺少什么?触发init方法,但viewDidLoad不会触发,也不会显示任何内容.
谢谢
使用以下代码我得到text.label但不是detailTextLabel.text.NSLog正确显示.
cell.textLabel.text = [eventLabels objectAtIndex:indexPath.row];
cell.detailTextLabel.text = [eventFields objectAtIndex:indexPath.row]];
NSLog(@"%@", [eventFields objectAtIndex:indexPath.row]);
Run Code Online (Sandbox Code Playgroud)
我也试过......
cell.detailTextLabel.text = [NSString stringWithFormat:@"%@", [eventFields objectAtIndex:indexPath.row]];
Run Code Online (Sandbox Code Playgroud)
我之前没有遇到任何问题.有什么建议?
约翰
我根本不熟悉SQL,所以希望有人可以帮我查询一个查询,该查询将查找父表中没有子表中记录的所有记录.
以下工作为我找到特定子字段值的父记录...
`SELECT ParentTable.ParentID
FROM ParentTable INNER JOIN
ParentTable ON ParentTable.ParentID = ChildTable.ChildID
WHERE (ChildTable.ChildField_ = '2131')
Group By
ParentTable.ParentID
Having
count(distinct ChildTable.ChildField) > 0`
Run Code Online (Sandbox Code Playgroud)
我可以更改where子句,了解如何查找具有零子记录计数的父项.
谢谢.
我无法想出这个.我在IB中创建了一个自定义UITableViewCell.据我所知,我拥有单元格中的所有对象,这些对象都是正确连接的UILabel,所有内容都没有任何错误.当我尝试使用自定义单元格时,app会在尝试加载NIB时停止.我在下面列出了我的实际情况.
任何帮助或提示或在哪里寻找这一个将不胜感激.
谢谢,
约翰
这是我的UITableViewCell接口和实现方法.我不确定我是否真的需要为init分配标签.我试过两种方式......
// ArrivalTimesCell.h
#import <UIKit/UIKit.h>
@interface ArrivalTimesCell : UITableViewCell {
IBOutlet UILabel *cityArrivalTimeLabel;
IBOutlet UILabel *optimumArrivalTimeLabel;
IBOutlet UILabel *arrivalAvoidTimesLabel;
IBOutlet UILabel *arrivalTimeNotSetLabel;
}
@property (nonatomic, retain)IBOutlet UILabel *cityArrivalTimeLabel;
@property (nonatomic, retain)IBOutlet UILabel *optimumArrivalTimeLabel;
@property (nonatomic, retain)IBOutlet UILabel *arrivalAvoidTimesLabel;
@property (nonatomic, retain)IBOutlet UILabel *arrivalTimeNotSetLabel;
@end
// ArrivalTimesCell.m
#import "ArrivalTimesCell.h"
@implementation ArrivalTimesCell
@synthesize arrivalTimeNotSetLabel, arrivalAvoidTimesLabel, optimumArrivalTimeLabel, cityArrivalTimeLabel;
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
if (self) {
arrivalTimeNotSetLabel = [[UILabel alloc] init];
arrivalAvoidTimesLabel = [[UILabel alloc] …Run Code Online (Sandbox Code Playgroud) 如果我改变UIBar按钮的色调,我怎么能将它重置为默认色调.
在这里,我为按钮设置了自定义色调......
examCancelButton.style = UIBarButtonSystemItemCancel;
examCancelButton.tintColor = myRedButtonTint;
Run Code Online (Sandbox Code Playgroud)
然后我需要将它设置回它的默认样式和色调.所以我认为只需将样式设置为UIBarButtonItemStyleDone即可完成这样的操作......
examCancelButton.style = UIBarButtonItemStyleDone;
Run Code Online (Sandbox Code Playgroud)
但颜色仍然是红色.我可以自己设置一个漂亮的蓝色,但我想获得UIBarButtonItemStyleDone按钮的默认颜色.这可能吗?
谢谢,约翰
我有一个带有单个UIView的xib,其中包含一堆图像和标签.如果我将Tap Gesture Recognizer拖到父视图上,它运行良好,但我需要添加代码来确定水龙头的位置,以便我可以正确响应点击的标签.
我认为如果我可以将Gesture Recognizers拖动到每个标签和/或图像并将IBActions连接到我响应的每个响应位置,那将会容易得多.不幸的是,我不能让这个工作.我只能从父视图中获取委托方法.
我所做的是将Tap Gesture Recognizer拖到标签上,然后将视图控制器连接为TGR的委托,并连接IBAction方法来处理tap.除了使用IBAction方法之外,我尝试了在gestureRecognizerShouldBegin:gestureRecognizer委托方法中分配目标和操作方法而没有成功.
这不应该工作,还是我只是如意思考?
谢谢你的帮助.
约翰
我的Ad Hoc个人资料即将在14天后过期.我在组织者的临时配置文件中有一个"续订"按钮,但是当我点击它时,我得到...
此团队中没有与提供的证书ID匹配的当前证书.
配置门户中的配置文件显示活动,30日到期.我还看到一个具有相同失效日期的分发证书.我必须假设此证书是用于签署配置文件的证书.有没有办法解决这个问题,而无需撤销和创建新的临时配置文件和证书?
如果我必须重新开始,在不弄乱我的测试者的情况下,最好的方法是什么.
关于此主题有很多帖子和答案,但我找不到任何解决此特定问题的证书与证书不符合配置文件的证书ID.
自升级到xCode 4以来,我的应用程序停在我认为不存在的断点处.当它断开时,没有断点显示,编辑说"线程:1停在断点17".在Breakpoint导航器中查看,在任何地方都没有断点17,并且它所停留的线路未在任何地方列出.
其他人看到这个?这可能是新的吗?
约翰
xcode ×9
iphone ×7
ipad ×2
provisioning ×2
uitableview ×2
breakpoints ×1
debugging ×1
nib ×1
nsdictionary ×1
sql ×1
xcode4 ×1