[Solved] draw a layer with some color in iPhone Application

If your app is just quitting with no debug error, there still could be a message sent to some deallocated instance. Try turning on NSZombieEnabled by following the instructions here: http://www.codza.com/how-to-debug-exc_bad_access-on-iphone This will tell you when a bad message is sent. Further, if you’d like to ask a question involving specific code, you’ll get better … Read more

[Solved] How to add a UITableview inside a UIImageview programmatically in Swift 3

You can not add a UITableView inside UIImageView. You can take a UIView and add UIImageView and UITableView inside this view. let bgView = UIView.init(frame: self.view.frame) //Frame of the view let imageView = UIImageView.init(frame: CGRect.init(x: 0, y: 0, width: bgView.frame.width, height: bgView.frame.height)) imageView.image = #imageLiteral(resourceName: “imgDefault”) let tableView = UITableView.init(frame: CGRect.init(x: 0, y: 0, width: … Read more

[Solved] application life cycle issue

I solved this problem, just overrides the UINavigationBar & in LayoutSubViews set the height of navigationBar. @implementation UINavigationBar (customNAvigBar) – (void)layoutSubviews { [self setFrame:CGRectMake(0, 0, 320, 55)]; } @end that means whenever i draws the navigationBar it calls automatically & sets the height. solved application life cycle issue

[Solved] To convert a particular format to NSDate [closed]

Use this code to get the Current Date NSDateFormatter *dateFor=[[NSDateFormatter alloc]init]; NSString *currentDateString = @”2014-01-08T21:21:22.737+05:30″; [dateFor setDateFormat:@”yyyy-MM-dd’T’HH:mm:ss.SSSZZZZ”]; NSDate *currentDate = [dateFor dateFromString:currentDateString]; NSLog(@”CurrentDate:%@”, currentDate); 5 solved To convert a particular format to NSDate [closed]