xcode - How to implement Static CGRect and CGFloat -


I'm looking at the net but I can not find an obvious answer. Make things stable?

CGRact ScreenTrack = [[USScreen Main Screen] border]; CGFloat screenwidth = screenRect.size.width; CGFloat Screenshite = 64;

I need to call them multiple times in my UIView class and it can not understand how it can be implemented in clean and elegant?

Example of the actual code

- (ID) InitializeNetworkCount: (NSString *) Search Message {CGRect ScreenTrack = [USScreen Main Screen] Border]; CGFloat screenwidth = screenRect.size.width; CGFloat Screenshite = 64; Networkview = [auto initwithframe: CGRactack (0, -220, screenwidth, screenhit)]; If (NetworkView) {networkView.backgroundColor = BCKNETWORKVIEW; LabelNetwork = [[UILabel alloc] init]; [Label Network Set Frame: CGRactam (0, 4, 320, 30)]; [Label network set font: [UIFont boldSystemFontOfSize: 11]]; [Label network setback color: [UIColor clearColor]]; [Label Network Set Reader: [UIColor whiteColor]]; [LabelSetset Network Set FontSizeToFitWidth: TRUE]; [Label network set text: search message]; LabelNetwork.textAlignment = NSTextAlignmentCenter; LabelNetwork.lineBreakMode = NSLineBreakByWordWrapping; LabelNetwork.numberOfLines = 2; [See networkviewviewview: label network]; NSString * successAlertString = [[NSString alloc] init]; SuccessAlvestString = Address Message; Tap gestures = [[UITapGestureRecognizer alloc] initWithTarget: Self-action: @Selector (endatapping); Tap Gastrek CancelsTouch's Inview = No; [Self-set user interaction enabled: Yes]; [Self addiculation: tap-gaster]; } Healthy return; } - (zero) Show Network Message {CGRect ScreenTrack = [[UScreen Main Screen] Border]; CGFloat screenwidth = screenRect.size.width; CGFloat Screenshite = 64; ScreenTrack = CGRactam (0, 0, screenwidth, screenhit); [UIView startup permissions: zero reference: zero]; [UIView Set Animation Duration: 0.25]; [UIView Set Delegate Animation: self]; Self.frame = screenRect; [UIView commitAnimations]; } - (zero) setHideAnimationNetwork {CGRect ScreenTrack = [[UIScreen main screen] border]; CGFloat screenwidth = screenRect.size.width; CGFloat Screenshite = 64; ScreenTrack = CGRactam (0, -220, screenwidth, screenhit); [UIView startup permissions: zero reference: zero]; [UIView Set Animation Duration: 0.25]; [UIView Set Delegate Animation: self]; [UIView Set AnimationDesettop Selector: @Selector (DeleteAnimation)]; Self.frame = screenRect; [UIView commitAnimations]; }

me #define

  

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -