Advertisement
ramu7

dash board ios 6 7 ios7 4-inches and 3.5 inches screen

Apr 14th, 2014
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.    if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.0"))
  2.            
  3.        {
  4.            
  5.              weeklyAudio=[UIButton buttonWithType:UIButtonTypeCustom];
  6.          
  7.          [weeklyAudio addTarget:self action:@selector(weeklyPredictions) forControlEvents:UIControlEventTouchUpInside];
  8.          
  9.          
  10.          [weeklyAudio setTitle:@"WEEKLY PREDICTIONS" forState:UIControlStateNormal];
  11.          
  12.          weeklyAudio.titleLabel.textAlignment = NSLineBreakByWordWrapping;
  13.          
  14.          weeklyAudio.titleLabel.numberOfLines = 2;
  15.          
  16.          [weeklyAudio.titleLabel setTextAlignment: NSTextAlignmentCenter];
  17.          
  18.          
  19.          [weeklyAudio setTitleEdgeInsets:UIEdgeInsetsMake(60, 10, 10, 10)];
  20.          
  21.          [weeklyAudio.titleLabel setFont:[UIFont systemFontOfSize:14.0]];
  22.          
  23.          weeklyAudio.frame=CGRectMake(10, 100, 140, 120);
  24.          
  25.          weeklyAudio.layer.cornerRadius=5;
  26.          
  27.          weeklyAudio.backgroundColor=[UIColor colorWithRed:232.0f/255.0f green:52.0f/255.0f blue:27.0f/255.0f alpha:1.0];
  28.          
  29.          
  30.          
  31.          
  32.          [self.view addSubview:weeklyAudio];
  33.          
  34.          
  35.          
  36.          weeklyAudioImage=[[UIImageView alloc]initWithFrame:CGRectMake(45, 10, 48, 48)];
  37.          
  38.          weeklyAudioImage.image=[UIImage imageNamed:@"48*48.png"];
  39.          
  40.          
  41.          [weeklyAudio addSubview:weeklyAudioImage];
  42.          
  43.          
  44.          weeklyAudio.autoresizingMask =  UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin |UIViewAutoresizingFlexibleBottomMargin  | UIViewAutoresizingFlexibleTopMargin;
  45.          
  46.          // Create Yearly Predictions Button.
  47.          
  48.          yearlyAudio=[UIButton buttonWithType:UIButtonTypeCustom];
  49.          
  50.          [yearlyAudio addTarget:self action:@selector(yearlyPredictions) forControlEvents:UIControlEventTouchUpInside];
  51.          
  52.          [yearlyAudio setTitle:@"YEARLY PREDICTIONS" forState:UIControlStateNormal];
  53.          
  54.          yearlyAudio.titleLabel.textAlignment=NSLineBreakByWordWrapping;
  55.          
  56.          yearlyAudio.titleLabel.numberOfLines=2;
  57.          
  58.          [yearlyAudio.titleLabel setTextAlignment:NSTextAlignmentCenter];
  59.          
  60.          [yearlyAudio setTitleEdgeInsets:UIEdgeInsetsMake(60, 10, 10, 10)];
  61.          
  62.          
  63.          [yearlyAudio.titleLabel setFont:[UIFont systemFontOfSize:14.0]];
  64.          
  65.          yearlyAudio.frame=CGRectMake(160, 100, 140, 120);
  66.          
  67.          yearlyAudio.layer.cornerRadius=5;
  68.          
  69.          yearlyAudio.backgroundColor=[UIColor colorWithRed:16.0f/255.0f green:144.0f/255.0f blue:209.0f/255.0f alpha:1.0];
  70.          
  71.          [self.view addSubview:yearlyAudio];
  72.          
  73.          yearlyAudioImage=[[UIImageView alloc]initWithFrame:CGRectMake(45, 10, 48, 48)];
  74.          
  75.          yearlyAudioImage.image=[UIImage imageNamed:@"48*48.png"];
  76.          
  77.          [yearlyAudio addSubview:yearlyAudioImage];
  78.          
  79.          yearlyAudio.autoresizingMask =  UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin |UIViewAutoresizingFlexibleBottomMargin  | UIViewAutoresizingFlexibleTopMargin;
  80.  
  81.  
  82.    panchamgamButton=[UIButton buttonWithType:UIButtonTypeCustom];
  83.          
  84.          [panchamgamButton addTarget:self action:@selector(panchangam) forControlEvents:UIControlEventTouchUpInside];
  85.          
  86.          
  87.          [panchamgamButton setTitle:@"PANCHANGAM PATANAM" forState:UIControlStateNormal];
  88.          
  89.          panchamgamButton.titleLabel.textAlignment = NSLineBreakByWordWrapping;
  90.          
  91.          panchamgamButton.titleLabel.numberOfLines = 2;
  92.          
  93.          [panchamgamButton.titleLabel setTextAlignment: NSTextAlignmentCenter];
  94.          
  95.          
  96.          [panchamgamButton setTitleEdgeInsets:UIEdgeInsetsMake(60, 10, 10, 10)];
  97.          
  98.          [panchamgamButton.titleLabel setFont:[UIFont systemFontOfSize:14.0]];
  99.          
  100.          panchamgamButton.frame=CGRectMake(10, 240, 140, 120);
  101.          
  102.          panchamgamButton.layer.cornerRadius=5;
  103.          
  104.          panchamgamButton.backgroundColor=[UIColor colorWithRed:255.0f/255.0f green:184.0f/255.0f blue:2.0f/255.0f alpha:1.0];
  105.          
  106.          
  107.          
  108.          
  109.          [self.view addSubview:panchamgamButton];
  110.          
  111.          
  112.          
  113.          panchamgamImage=[[UIImageView alloc]initWithFrame:CGRectMake(45, 10, 48, 48)];
  114.          
  115.          panchamgamImage.image=[UIImage imageNamed:@"48*48.png"];
  116.          
  117.          
  118.          [panchamgamButton addSubview:panchamgamImage];
  119.          
  120.          
  121.          panchamgamButton.autoresizingMask =  UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin |UIViewAutoresizingFlexibleBottomMargin  | UIViewAutoresizingFlexibleTopMargin;
  122.  
  123.          
  124.          // calendar creation
  125.          
  126.          
  127.          
  128.          calendarButton=[UIButton buttonWithType:UIButtonTypeCustom];
  129.          
  130.          [calendarButton addTarget:self action:@selector(calender) forControlEvents:UIControlEventTouchUpInside];
  131.          
  132.          [calendarButton setTitle:@"CALENDAR" forState:UIControlStateNormal];
  133.          
  134.          
  135.          
  136.          [calendarButton.titleLabel setTextAlignment: NSTextAlignmentCenter];
  137.          
  138.          [calendarButton setTitleEdgeInsets:UIEdgeInsetsMake(60, 10, 10, 10)];
  139.          
  140.          [calendarButton.titleLabel setFont:[UIFont systemFontOfSize:14.0]];
  141.          
  142.          calendarButton.frame=CGRectMake(160, 240, 140, 120);
  143.          
  144.          calendarButton.layer.cornerRadius=5;
  145.          
  146.          calendarButton.backgroundColor=[UIColor colorWithRed:239.0f/255.0f green:49.0f/255.0f blue:87.0f/255.0f alpha:1.0];
  147.          
  148.          [self.view addSubview:calendarButton];
  149.          
  150.          calendarImage=[[UIImageView alloc]initWithFrame:CGRectMake(45, 10, 48, 48)];
  151.          
  152.          calendarImage.image=[UIImage imageNamed:@"calendaricon48*48.png"];
  153.          
  154.          [calendarButton addSubview:calendarImage];
  155.          
  156.          calendarImage.autoresizingMask =  UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin |UIViewAutoresizingFlexibleBottomMargin  | UIViewAutoresizingFlexibleTopMargin;
  157.          
  158.          
  159.          // proven Predicitons Button Creation
  160.          
  161.          provenPredictButton=[UIButton buttonWithType:UIButtonTypeCustom];
  162.          
  163.          [provenPredictButton addTarget:self action:@selector(provenPredict) forControlEvents:UIControlEventTouchUpInside];
  164.          
  165.          
  166.          [provenPredictButton setTitle:@"PROVEN PREDICTIONS" forState:UIControlStateNormal];
  167.          
  168.          provenPredictButton.titleLabel.textAlignment = NSLineBreakByWordWrapping;
  169.          
  170.          provenPredictButton.titleLabel.numberOfLines = 2;
  171.          
  172.          [provenPredictButton.titleLabel setTextAlignment: NSTextAlignmentCenter];
  173.          
  174.          
  175.          [provenPredictButton setTitleEdgeInsets:UIEdgeInsetsMake(60, 10, 10, 10)];
  176.          
  177.          [provenPredictButton.titleLabel setFont:[UIFont systemFontOfSize:14.0]];
  178.          
  179.          provenPredictButton.frame=CGRectMake(10, 380, 140, 120);
  180.          
  181.          provenPredictButton.layer.cornerRadius=5;
  182.          
  183.          provenPredictButton.backgroundColor=[UIColor colorWithRed:246.0f/255.0f green:83.0f/255.0f blue:50.0f/255.0f alpha:1.0];
  184.          
  185.          [self.view addSubview:provenPredictButton];
  186.          
  187.          provenPredictImage=[[UIImageView alloc]initWithFrame:CGRectMake(45, 10, 48, 48)];
  188.          
  189.          provenPredictImage.image=[UIImage imageNamed:@"48*48.png"];
  190.          
  191.          [provenPredictButton addSubview:provenPredictImage];
  192.          
  193.          provenPredictButton.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin |UIViewAutoresizingFlexibleBottomMargin  | UIViewAutoresizingFlexibleTopMargin;
  194.          
  195.          
  196.          
  197.          // Future Predictions
  198.          
  199.          
  200.          
  201.          futurePredictionsButton=[UIButton buttonWithType:UIButtonTypeCustom];
  202.          
  203.          [futurePredictionsButton addTarget:self action:@selector(futurePredictions) forControlEvents:UIControlEventTouchUpInside];
  204.          
  205.          [futurePredictionsButton setTitle:@"FUTURE PREDICTIONS" forState:UIControlStateNormal];
  206.          
  207.          futurePredictionsButton.titleLabel.textAlignment = NSLineBreakByWordWrapping;
  208.          
  209.          futurePredictionsButton.titleLabel.numberOfLines = 2;
  210.          
  211.          [futurePredictionsButton.titleLabel setTextAlignment: NSTextAlignmentCenter];
  212.          
  213.          
  214.          
  215.          [futurePredictionsButton.titleLabel setTextAlignment: NSTextAlignmentCenter];
  216.          
  217.          [futurePredictionsButton setTitleEdgeInsets:UIEdgeInsetsMake(60, 10, 10, 10)];
  218.          
  219.          [futurePredictionsButton.titleLabel setFont:[UIFont systemFontOfSize:14.0]];
  220.          
  221.          futurePredictionsButton.frame=CGRectMake(160, 380, 140, 120);
  222.          
  223.          futurePredictionsButton.layer.cornerRadius=5;
  224.          
  225.          futurePredictionsButton.backgroundColor=[UIColor colorWithRed:114.0f/255.0f green:188.0f/255.0f blue:7.0f/255.0f alpha:1.0];
  226.          
  227.          [self.view addSubview:futurePredictionsButton];
  228.          
  229.          futurePredictionsImage=[[UIImageView alloc]initWithFrame:CGRectMake(45, 10, 48, 48)];
  230.          
  231.          futurePredictionsImage.image=[UIImage imageNamed:@"futureicon48.png"];
  232.          
  233.          [futurePredictionsButton addSubview:futurePredictionsImage];
  234.          
  235.          futurePredictionsImage.autoresizingMask =  UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin |UIViewAutoresizingFlexibleBottomMargin  | UIViewAutoresizingFlexibleTopMargin;
  236.          
  237.          
  238.          ADBannerView *adView = [[ADBannerView alloc] initWithFrame:CGRectZero];
  239.          //    adView.currentContentSizeIdentifier = ADBannerContentSizeIdentifierPortrait;
  240.          adView.frame=CGRectMake(0, 510, 320, 40);
  241.          adView.delegate=self;
  242.          //    adView.backgroundColor=[UIColor brownColor];
  243.          [self.view addSubview:adView];
  244.          
  245.          
  246.          adView.autoresizingMask =  UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin |UIViewAutoresizingFlexibleBottomMargin  | UIViewAutoresizingFlexibleTopMargin;
  247.  
  248.  
  249.          
  250.  
  251.         }
  252.    
  253.    
  254.     else
  255.        
  256.     {
  257.            
  258.         weeklyAudio=[UIButton buttonWithType:UIButtonTypeCustom];
  259.        
  260.         [weeklyAudio addTarget:self action:@selector(weeklyPredictions) forControlEvents:UIControlEventTouchUpInside];
  261.        
  262.        
  263.         [weeklyAudio setTitle:@"WEEKLY PREDICTIONS" forState:UIControlStateNormal];
  264.        
  265.         weeklyAudio.titleLabel.textAlignment = NSLineBreakByWordWrapping;
  266.        
  267.         weeklyAudio.titleLabel.numberOfLines = 2;
  268.        
  269.         [weeklyAudio.titleLabel setTextAlignment: NSTextAlignmentCenter];
  270.        
  271.        
  272.         [weeklyAudio setTitleEdgeInsets:UIEdgeInsetsMake(60, 10, 10, 10)];
  273.        
  274.         [weeklyAudio.titleLabel setFont:[UIFont systemFontOfSize:14.0]];
  275.        
  276.         weeklyAudio.frame=CGRectMake(10, 60, 140, 120);
  277.        
  278.         weeklyAudio.layer.cornerRadius=5;
  279.        
  280.         weeklyAudio.backgroundColor=[UIColor colorWithRed:232.0f/255.0f green:52.0f/255.0f blue:27.0f/255.0f alpha:1.0];
  281.        
  282.        
  283.        
  284.        
  285.         [self.view addSubview:weeklyAudio];
  286.        
  287.        
  288.        
  289.         weeklyAudioImage=[[UIImageView alloc]initWithFrame:CGRectMake(45, 10, 48, 48)];
  290.        
  291.         weeklyAudioImage.image=[UIImage imageNamed:@"48*48.png"];
  292.        
  293.        
  294.         [weeklyAudio addSubview:weeklyAudioImage];
  295.        
  296.        
  297.         weeklyAudio.autoresizingMask =   UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin |UIViewAutoresizingFlexibleBottomMargin  | UIViewAutoresizingFlexibleTopMargin;
  298.        
  299.        
  300.        
  301.         // Create Yearly Prediction Button Audio
  302.        
  303.        
  304.         yearlyAudio=[UIButton buttonWithType:UIButtonTypeCustom];
  305.        
  306.         [yearlyAudio addTarget:self action:@selector(yearlyPredictions) forControlEvents:UIControlEventTouchUpInside];
  307.        
  308.         [yearlyAudio setTitle:@"YEARLY PREDICTIONS" forState:UIControlStateNormal];
  309.        
  310.        
  311.        
  312.         yearlyAudio.titleLabel.textAlignment = NSLineBreakByWordWrapping;
  313.        
  314.         yearlyAudio.titleLabel.numberOfLines = 2;
  315.        
  316.         [yearlyAudio.titleLabel setTextAlignment: NSTextAlignmentCenter];
  317.        
  318.         [yearlyAudio setTitleEdgeInsets:UIEdgeInsetsMake(60, 10, 10, 10)];
  319.        
  320.         [yearlyAudio.titleLabel setFont:[UIFont systemFontOfSize:14.0]];
  321.        
  322.         yearlyAudio.frame=CGRectMake(160, 60, 140, 120);
  323.        
  324.         yearlyAudio.layer.cornerRadius=5;
  325.        
  326.         yearlyAudio.backgroundColor=[UIColor colorWithRed:16.0f/255.0f green:144.0f/255.0f blue:209.0f/255.0f alpha:1.0];
  327.        
  328.         [self.view addSubview:yearlyAudio];
  329.        
  330.         yearlyAudioImage=[[UIImageView alloc]initWithFrame:CGRectMake(45, 10, 48, 48)];
  331.        
  332.         yearlyAudioImage.image=[UIImage imageNamed:@"48*48.png"];
  333.        
  334.         [yearlyAudio addSubview:yearlyAudioImage];
  335.        
  336.         yearlyAudio.autoresizingMask =  UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin |UIViewAutoresizingFlexibleBottomMargin  | UIViewAutoresizingFlexibleTopMargin;
  337.        
  338.        
  339.        
  340.        
  341.        
  342.         // create Panchamgam patanam
  343.        
  344.         panchamgamButton=[UIButton buttonWithType:UIButtonTypeCustom];
  345.        
  346.         [panchamgamButton addTarget:self action:@selector(panchangam) forControlEvents:UIControlEventTouchUpInside];
  347.        
  348.        
  349.         [panchamgamButton setTitle:@"PANCHANGAM PATANAM" forState:UIControlStateNormal];
  350.        
  351.         panchamgamButton.titleLabel.textAlignment = NSLineBreakByWordWrapping;
  352.        
  353.         panchamgamButton.titleLabel.numberOfLines = 2;
  354.        
  355.         [panchamgamButton.titleLabel setTextAlignment: NSTextAlignmentCenter];
  356.        
  357.        
  358.         [panchamgamButton setTitleEdgeInsets:UIEdgeInsetsMake(60, 10, 10, 10)];
  359.        
  360.         [panchamgamButton.titleLabel setFont:[UIFont systemFontOfSize:14.0]];
  361.        
  362.         panchamgamButton.frame=CGRectMake(10, 190, 140, 120);
  363.        
  364.         panchamgamButton.layer.cornerRadius=5;
  365.        
  366.         panchamgamButton.backgroundColor=[UIColor colorWithRed:255.0f/255.0f green:184.0f/255.0f blue:2.0f/255.0f alpha:1.0];
  367.        
  368.        
  369.        
  370.        
  371.         [self.view addSubview:panchamgamButton];
  372.        
  373.        
  374.        
  375.         panchamgamImage=[[UIImageView alloc]initWithFrame:CGRectMake(45, 10, 48, 48)];
  376.        
  377.         panchamgamImage.image=[UIImage imageNamed:@"48*48.png"];
  378.        
  379.        
  380.         [panchamgamButton addSubview:panchamgamImage];
  381.        
  382.        
  383.         panchamgamButton.autoresizingMask =  UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin |UIViewAutoresizingFlexibleBottomMargin  | UIViewAutoresizingFlexibleTopMargin;
  384.        
  385.        
  386.        
  387.         // calendar creation
  388.        
  389.        
  390.        
  391.         calendarButton=[UIButton buttonWithType:UIButtonTypeCustom];
  392.        
  393.         [calendarButton addTarget:self action:@selector(calender) forControlEvents:UIControlEventTouchUpInside];
  394.        
  395.         [calendarButton setTitle:@"CALENDAR" forState:UIControlStateNormal];
  396.        
  397.        
  398.        
  399.         [calendarButton.titleLabel setTextAlignment: NSTextAlignmentCenter];
  400.        
  401.         [calendarButton setTitleEdgeInsets:UIEdgeInsetsMake(60, 10, 10, 10)];
  402.        
  403.         [calendarButton.titleLabel setFont:[UIFont systemFontOfSize:14.0]];
  404.        
  405.         calendarButton.frame=CGRectMake(160, 190, 140, 120);
  406.        
  407.         calendarButton.layer.cornerRadius=5;
  408.        
  409.         calendarButton.backgroundColor=[UIColor colorWithRed:239.0f/255.0f green:49.0f/255.0f blue:87.0f/255.0f alpha:1.0];
  410.        
  411.         [self.view addSubview:calendarButton];
  412.        
  413.         calendarImage=[[UIImageView alloc]initWithFrame:CGRectMake(45, 10, 48, 48)];
  414.        
  415.         calendarImage.image=[UIImage imageNamed:@"calendaricon48*48.png"];
  416.        
  417.         [calendarButton addSubview:calendarImage];
  418.        
  419.         calendarImage.autoresizingMask =   UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin |UIViewAutoresizingFlexibleBottomMargin  | UIViewAutoresizingFlexibleTopMargin;
  420.        
  421.        
  422.        
  423.        
  424.        
  425.        
  426.         // Proven Predict Image
  427.        
  428.        
  429.         // create Panchamgam patanam
  430.        
  431.         provenPredictButton=[UIButton buttonWithType:UIButtonTypeCustom];
  432.        
  433.         [provenPredictButton addTarget:self action:@selector(provenPredict) forControlEvents:UIControlEventTouchUpInside];
  434.        
  435.        
  436.         [provenPredictButton setTitle:@"PROVEN PREDICTIONS" forState:UIControlStateNormal];
  437.        
  438.         provenPredictButton.titleLabel.textAlignment = NSLineBreakByWordWrapping;
  439.        
  440.         provenPredictButton.titleLabel.numberOfLines = 2;
  441.        
  442.         [provenPredictButton.titleLabel setTextAlignment: NSTextAlignmentCenter];
  443.        
  444.        
  445.         [provenPredictButton setTitleEdgeInsets:UIEdgeInsetsMake(60, 10, 10, 10)];
  446.        
  447.         [provenPredictButton.titleLabel setFont:[UIFont systemFontOfSize:14.0]];
  448.        
  449.         provenPredictButton.frame=CGRectMake(10, 320, 140, 120);
  450.        
  451.         provenPredictButton.layer.cornerRadius=5;
  452.        
  453.         provenPredictButton.backgroundColor=[UIColor colorWithRed:246.0f/255.0f green:83.0f/255.0f blue:50.0f/255.0f alpha:1.0];
  454.        
  455.        
  456.        
  457.        
  458.         [self.view addSubview:provenPredictButton];
  459.        
  460.        
  461.        
  462.         provenPredictImage=[[UIImageView alloc]initWithFrame:CGRectMake(45, 10, 48, 48)];
  463.        
  464.         provenPredictImage.image=[UIImage imageNamed:@"48*48.png"];
  465.        
  466.        
  467.         [provenPredictButton addSubview:provenPredictImage];
  468.        
  469.        
  470.         provenPredictButton.autoresizingMask =  UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin |UIViewAutoresizingFlexibleBottomMargin  | UIViewAutoresizingFlexibleTopMargin;
  471.        
  472.        
  473.        
  474.         // Future Predictions
  475.        
  476.        
  477.        
  478.         futurePredictionsButton=[UIButton buttonWithType:UIButtonTypeCustom];
  479.        
  480.         [futurePredictionsButton addTarget:self action:@selector(futurePredictions) forControlEvents:UIControlEventTouchUpInside];
  481.        
  482.         [futurePredictionsButton setTitle:@"FUTURE PREDICTIONS" forState:UIControlStateNormal];
  483.        
  484.         futurePredictionsButton.titleLabel.textAlignment = NSLineBreakByWordWrapping;
  485.        
  486.         futurePredictionsButton.titleLabel.numberOfLines = 2;
  487.        
  488.         [futurePredictionsButton.titleLabel setTextAlignment: NSTextAlignmentCenter];
  489.        
  490.        
  491.        
  492.         [futurePredictionsButton.titleLabel setTextAlignment: NSTextAlignmentCenter];
  493.        
  494.         [futurePredictionsButton setTitleEdgeInsets:UIEdgeInsetsMake(60, 10, 10, 10)];
  495.        
  496.         [futurePredictionsButton.titleLabel setFont:[UIFont systemFontOfSize:14.0]];
  497.        
  498.         futurePredictionsButton.frame=CGRectMake(160, 320, 140, 120);
  499.        
  500.         futurePredictionsButton.layer.cornerRadius=5;
  501.        
  502.         futurePredictionsButton.backgroundColor=[UIColor colorWithRed:114.0f/255.0f green:188.0f/255.0f blue:7.0f/255.0f alpha:1.0];
  503.        
  504.         [self.view addSubview:futurePredictionsButton];
  505.        
  506.         futurePredictionsImage=[[UIImageView alloc]initWithFrame:CGRectMake(45, 10, 48, 48)];
  507.        
  508.         futurePredictionsImage.image=[UIImage imageNamed:@"futureicon48.png"];
  509.        
  510.         [futurePredictionsButton addSubview:futurePredictionsImage];
  511.        
  512.         futurePredictionsImage.autoresizingMask =  UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin |UIViewAutoresizingFlexibleBottomMargin  | UIViewAutoresizingFlexibleTopMargin;
  513.        
  514.        
  515.         ADBannerView *adView = [[ADBannerView alloc] initWithFrame:CGRectZero];
  516.         //    adView.currentContentSizeIdentifier = ADBannerContentSizeIdentifierPortrait;
  517.         adView.frame=CGRectMake(0, 400, 320, 40);
  518.         adView.delegate=self;
  519.         //    adView.backgroundColor=[UIColor brownColor];
  520.         [self.view addSubview:adView];
  521.  
  522.  
  523.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement