appDelegate メソッドに UINavigationBar を追加しました。添付のスクリーン ショットを確認してください。一番下は UINavigationBar を使用しています。ページ履歴ボタンの真ん中にあります。
ここで、履歴ボタンをクリックすると、historyviwcontrooler に移動できません。ビューをプッシュできないからです。ここを押す方法を教えてください。履歴をクリックすると、別のクラスが呼び出された後、1回だけ呼び出しが呼び出され、そこでUIが与えられただけです。ここでの扱い方。私を助けてください
#import "UICallButton.h"
#import "LinphoneManager.h"
#import <CoreTelephony/CTCallCenter.h>
@implementation UICallButton
@synthesize addressField;
#pragma mark - Lifecycle Functions
- (void)initUICallButton {
[self addTarget:self action:@selector(touchUp:) forControlEvents:UIControlEventTouchUpInside];
}
- (id)init {
self = [super init];
if (self) {
[self initUICallButton];
}
return self;
}
- (id)initWithFrame:(CGRect)frame {
self = [super initWithFrame:frame];
if (self) {
[self initUICallButton];
}
return self;
}
- (id)initWithCoder:(NSCoder *)decoder {
self = [super initWithCoder:decoder];
if (self) {
[self initUICallButton];
}
return self;
}
- (void)dealloc {
[addressField release];
[super dealloc];
}
#pragma mark -
- (void)touchUp:(id) sender {
NSString *address = [addressField text];
NSString *displayName = nil;
ABRecordRef contact = [[[LinphoneManager instance] fastAddressBook] getContact:address];
if(contact) {
displayName = [FastAddressBook getContactDisplayName:contact];
}
[[LinphoneManager instance] call:address displayName:displayName transfer:FALSE];
}
@end