madebyApp

Local Deals

Local Deals iOS

Screenshots

Local Deals iOS
Local Deals iOS

Specification

How to Use

Sample Code

- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view from its nib. appDel = (AppDelegate*)[[UIApplication sharedApplication] delegate]; [self.view setBackgroundColor:DEFAULT_BG_COLOR]; UIButton *btnclose =[[UIButton alloc] initWithFrame:CGRectMake(0, 0, 20, 20)]; [btnclose setBackgroundImage:[UIImage imageNamed:@"close_tbn"] forState:UIControlStateNormal]; [btnclose addTarget:self action:@selector(popView:) forControlEvents:UIControlEventTouchUpInside]; UIBarButtonItem *btnleft =[[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"close_tbn"] style:UIBarButtonItemStylePlain target:self action:@selector(popView:)]; [self.navigationItem setLeftBarButtonItem:btnleft]; UIButton *btnNext =[[UIButton alloc] initWithFrame:CGRectMake(0, 0, 25, 25)]; [btnNext setBackgroundImage:[UIImage imageNamed:@"checkmark"] forState:UIControlStateNormal]; [btnNext addTarget:self action:@selector(saveProduct:) forControlEvents:UIControlEventTouchUpInside]; UIBarButtonItem *btnright =[[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"checkmark"] style:UIBarButtonItemStylePlain target:self action:@selector(saveProduct:)]; self.navigationItem.rightBarButt [self.btnPic.layer setMasksToBounds:YES]; [self.btnPic.layer setCornerRadius:2.0]; self.btnPic.imageView.c self.navigationItem.title = @""; UILabel *headeLbl = [[UILabel alloc] init]; headeLbl.frame = CGRectMake(0, 0, 200, 40); headeLbl.f fontWithName:App_Font_NavigationBar size:17]; headeLbl.textColor = DEFAULT_COLOR_NAV_header; headeLbl.textAlignment = NSTextAlignmentCenter; self.navigationItem.titleView = headeLbl; if (_dicData.count>0) { headeLbl.text =Localized(@"EDIT"); _txtName.text = [[_dicData valueForKey:@"product_name"] stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; [_btnPic.imageView sd_setImageWithURL:[NSURL URLWithString:[_dicData valueForKey:@"image_path"]] placeholderImage:[UIImage imageNamed:@"image_not_there"] options:SDWebImageRefreshCached completed:^(UIImage *image , NSError *error , SDImageCacheType type , NSURL *imageURL) { [_btnPic setImage:image forState:UIControlStateNormal]; // cell.imgRent.image = [UIImage animatedImageWithAnimatedGIFURL:url1]; if (image == nil) { [_btnPic setImage:[UIImage imageNamed:@"image_not_there"] forState:UIControlStateNormal]; } }]; // BusinessLatitude = [[_dicData valueForKey:@"latitude"] doubleValue]; // BusinessL valueForKey:@"longitude"] doubleValue]; } else { headeLbl.text =Localized(@"CREATE"); } _txtName.placeholder= Localized(@"Name"); [_txtName setFont:[UIFont fontWithName:App_Font size:15]]; UploadProgress = [[UIProgressView alloc] init]; UploadProgress.progress = 0.0; UploadView = [[UIView alloc] init]; UploadView.frame = CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT); UploadView.backgroundColor = [UIColor clearColor]; UploadBgView = [[UIView alloc] init]; UploadBgView.frame = CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT); UploadBgView.backgroundColor = [UIColor blackColor]; UploadBgView.alpha = 0.45; [UploadView addSubview:UploadBgView]; UploadDatView = [[UIView alloc] init]; UploadDatView.frame = CGRectMake((SCREEN_WIDTH-180)/2, (SCREEN_HEIGHT-150)/2, 180, 150); UploadDatView.backgroundColor = DEFAULT_COLOR_NAV; UploadDatView.alpha = 1; [UploadView addSubview:UploadDatView]; UploadDatView.layer.cornerRadius = 15; self.largestProgressView = [[DACircularProgressView alloc] init]; //self.largestProgressView.trackTintColor = [UIColor lightGrayColor]; //self.largestProgressView.progressTintColor = [UIColor whiteColor]; self.largestProgressView.thicknessRatio = 0.2f; //self.largestProgressView.clockwiseProgress = TRUE; self.largestProgressView.progress = 0.0; self.largestProgressView.frame= CGRectMake(56, 27, 70, 70); self.largestProgressView.hidden = TRUE; self.largestProgressView.roundedCorners = NO; self.largestProgressView.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleBottomMargin | UIViewAutoresizingFlexibleRightMargin;

Video

Comments (0)

  • {{com.username}}
    {{com.username}}
    Buyer
    Seller

    {{com.username}}

    {{com.ctime}}

    {{com.content}}

    • {{com2.username}}
      {{com2.username}}
      Buyer
      Seller

      {{com2.username}}

      {{com2.ctime}}

      {{com2.content}}