1
내 프로젝트는 시뮬레이터에서 잘 작동하지만 추가 한 후 실제 장치에 구축 할 것 :@synthesize 숨김 파일 헤더?
@synthesize extraView=_extraView;
이 라인은 어떻게 든 파일 헤더를 숨 깁니다 것으로 보인다. "깨끗한"시도 - 변경하지 마십시오. 이전에 @property를 사용하고 @synthesize를 여러 번 사용했으며 이와 같은 것을 보지 못했습니다. extraView 처리를 다시 작성하려고하지만 유사한 오류가 발생했다면 호기심을 묻습니다.
플랫폼 :
XCode 4.0.1
4.2.1 Ipad
파일 헤더 : 빌드 오류의
//
// MediaBook.h
// Dolphin
//
// Created by Handymood on 11-5-22.
// Copyright 2011 __Hanydmood__. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "SinglePage.h"
#import "LayerInfo.h"
#import "MediaBookXMLParser.h"
#import "GlobalSet.h"
#import "UIComponentBase.h"
#import "IndexPageInfo.h"
#import "IndexPage.h"
#import "TopBar.h"
#import "BottomBar.h"
#import "DolphinUIWebLayer.h"
#import "MediaBookBase.h"
#import "ColorUtil.h"
#import "DolphinUICategory.h"
#import "UICategoryUnit.h"
#import "ImageInfoBox.h"
#import "Gallery.h"
#import "Calendar.h"
@class SinglePage;
@class LayerInfo;
@class MediaBookXMLParser;
@class GlobalSet;
@class UIComponentBase;
@class IndexPageInfo;
@class IndexPage;
@class TopBar;
@class BottomBar;
@class DolphinUIWebLayer;
@class MediaBookBase;
@class ColorUtil;
@class DolphinUICategory;
@class UICategoryUnit;
@interface MediaBook : MediaBookBase <UIScrollViewDelegate>
{
UIImageLayer *backGroundImage;
UIView *bgView;
BottomBar *bottomBar;
DolphinUIWebLayer *webLayer;
DolphinUICategory *categoryLayer;
UIActivityIndicatorView *activityIndicator;
UIInterfaceOrientation preOrientation;
NSTimer *objQueMagTimer;
float previous_scroll_pos;
BOOL bar_status_hidden;
float top_bar_ori_y;
float bottom_bar_ori_y;
BOOL scroll_block_signal;
int screen_direction;//0:vertical 1:horizontal
BOOL webLayerOn;
BOOL categoryOn;
BOOL changingExtraView;
}
@property UIInterfaceOrientation preOrientation;
@property (nonatomic, retain) UIView *extraView;
-(void) initWithGlobalSet:(GlobalSet *) inGlobalSet;
-(void) initBook:(NSString *)configXmlAdd curOrientation:(UIInterfaceOrientation)interfaceOrientation;
-(void) initBookContent;
-(void) notificationSelector:(NSNotification *) notification;
-(void) statusBarAnimationTrigger;
-(void) layoutAdjustWithOrientation:(UIInterfaceOrientation)interfaceOrientation
orientaionType:(NSString *) inOrientationType;
-(void) closeCategoryLayer;
-(void) reset;
-(void) showExtraView:(NSString *)name;
-(void) hideExtraView;
@end
스크린 샷 :
내가 @property를 사용하기 전에 여러 번 @synthesize했고 어떤 비슷한 것을 보지 못했습니다. 팁을위한 MJA에
UIView *_extraView;
감사 : 선언 인터페이스에 다음을 추가
는 슈퍼 클래스에 선언하는 선언되지 않은 바르입니까? ('MediaBookBase')'_extraView'는 슈퍼 뷰에서 선언 되었습니까? 아니면 생성 된 ivars를 사용합니까? – mja
클래스 (#import)를 가져오고 나중에 가져올 것이라고 말합니다 (@class). 그건 불필요한 것 같습니다. 나는 또한 fit_with_screen이 정의 된 곳을 보지 못한다. 순환 종속성을 수정하여 실패한 경우 Xcode는 실패한 가져 오기를 인식하지 못합니다. # import를 .m 파일로 옮겨야하지만 너무 많은 파일이있을 수 있습니다. 실제로 많은 파일이 필요하다면 문제가 될 수 있습니다. 팁에 대한 – Jano
감사합니다 - 혼란의 문제는 우리가이 프로젝트 handymood.com 응용 프로그램 템플릿을 사용하고 있으며 이러한 수입 및 @class 선언 그들이 정말 필요하면 내가 확실하지 않았다 비록 패키지 : 함께 제공된 것입니다. – Laurynas