[Solved] Can’t set cell title’s text

Since you declared title and text as properties, but for some reason get the exception: [Notez setTitle:]: unrecognized selector sent to instance, apparently I can only make another guess here. Usually, when declaring a property, you get a setter and a getter method for it. This way you can omit writing these by hand if … Read more

[Solved] Could you please explain the following code, especially the func statement

If you have any doubts regarding the UITextFieldDelegate see this example. This func is called just before the typed charecter comes to the textfield. This func is mainly used for the validation. Just to understand what happens I have written small code. func textField(textField: UITextField, shouldChangeCharactersInRange range: NSRange, replacementString string: String) -> Bool { print(“TextField … Read more

[Solved] Xcode says: “use of undeclared type” and “‘{‘ after ‘if’ condition”. Other threads on this site don’t have the answer [closed]

Xcode says: “use of undeclared type” and “‘{‘ after ‘if’ condition”. Other threads on this site don’t have the answer [closed] solved Xcode says: “use of undeclared type” and “‘{‘ after ‘if’ condition”. Other threads on this site don’t have the answer [closed]

[Solved] How to get data from website

This is simple way 1) Get the html content from the url: you can use – NSURLSession NSURLSession *session = [NSURLSession sessionWithConfiguration:sessionConfig delegate:nil delegateQueue:nil]; [[session dataTaskWithURL:[NSURL URLWithString:urlString] completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { – NSURLConnection: NSURLConnection *urlConnection = [[NSURLConnection alloc] initWithRequest:self.request delegate:self]; dataWithContentsOfURL: NSData * htmlData = [NSData dataWithContentsOfURL:[NSURL URLWithString:urlString]]; 2) Parse the variable … Read more

[Solved] Update Once each in specific time [closed]

Your code doesn’t add much to your question, so I don’t really know if this is what you are looking for, but here is some code to call a function every X time (swift 3): // call MyMethod every 1 second : Timer.scheduledTimer(timeInterval: 1, target: self, selector: #selector(MyController.myMethod), userInfo: nil, repeats: true) Please search before … Read more

[Solved] swift 4 label that each time i hit the button the label shows a different word [closed]

You need to create an array first: let creatures = [“Cat”, “Dog”, “Bird”, “Butterfly”, “Fish”] And add an IBOutlet for your label: @IBOutlet weak var label: UILabel! And add an IBAction for your button: @IBAction func updateLabelButtonTapped(_ sender: UIButton) { // Get the index of a random element from the array let randomIndex = Int(arc4random_uniform(UInt32(creatures.count))) … Read more

[Solved] Google label is not sharp (WKWebView)

I have found the solution. Just set customUserAgent : webView.customUserAgent = “Mozilla/5.0 (iPhone; CPU iPhone OS 11_2_5 like Mac OS X) AppleWebKit/604.5.6 (KHTML, like Gecko) Version/11.0 Mobile/15D60 Safari/604.1” solved Google label is not sharp (WKWebView)

[Solved] else if condition concept

You better reconstruct it like: if ([startLocationAddress rangeOfString:@”Australia”].location == NSNotFound) { //codes.. } else { NSLog(@”startLocationAddress contain Australia”); } if ([endLocationAddress rangeOfString:@”Australia”].location == NSNotFound) { //codes.. } else { NSLog(@”endLocationAddress contain Australia”); } and review how if–else if–else statement works.. See: @ Hanky 웃 Panky answer for that, since confusion is very prone to us.. … Read more

[Solved] How to measure user distance from wall

In the comments, you shared a link to a video: http://youtube.com/watch?v=PBpRZWmPyKo. That app is not doing anything particularly sophisticated with the camera, but rather appears to be calculate distances using basic trigonometry, and it accomplishes this by constraining the business problem in several critical ways: First, the app requires the user to specify the height … Read more

[Solved] How to make app update available to users in the form of an attractive screen? [closed]

You can get all App info from iTunes store lookup API: http://itunes.apple.com/lookup?bundleId=YOUR_BUNDLE_ID, in this you can get App version on App Store. Make your design screen as you want to show your App users, Then compare your App version on App store & user’s device, if both version not equal then show the update version … Read more

[Solved] Remove a character once

I don’t know I understand exactly what you want to do but from your example you mast want to remove last come. If there is always closing bracket ‘]’ at the end you can use; str = [str stringByReplacingOccurrencesOfString:@” ,]” withString:@”]”]; Hope this is what you are after. solved Remove a character once

[Solved] How to make Custom UIview which have rounded cornes, in iphone? [closed]

For this you need to import Quartz framework. You can also set Bordercolor, shadow color, corner width, etc to that view. #import <QuartzCore/QuartzCore.h> And try this code. [self.YourView.layer setCornerRadius:1.0]; [self.YourView.layer setBorderColor:[[[UIColor grayColor] colorWithAlphaComponent:0.5] CGColor]]; [self.YourView.layer setBorderWidth:1.0]; [self.YourView.layer setShadowColor:[UIColor lightGrayColor].CGColor]; 2 solved How to make Custom UIview which have rounded cornes, in iphone? [closed]