
When you draw a shadow on UITableViewCell. The overflowed part is cut. To prevent this, what you need to do is just set these two lines.
cell.clipsToBounds = falsecell.contentView.clipsToBounds = false
After this, all the the part of shadow is going to be drawing.
There isn’t any error reporting, but you could face with a problem that your app no longer showing an alternative localized strings.
Finally, I could find the missing semicolon ‘;’ (at the last of line 5)
After you put the explicit semicolon line finalizer, you can see the converted strings as what you expected.
override ‘touchesEnded’ under your UIViewController class.
But if you want to catch the touch in a Subview like UITableView. that intercepts the event so, in that case, you have to override touch event under that Subview
You can change the position of UIView using it.
myView.frame.origin.x
myView.frame.origin.yBut if you already setted the constraints with storyboard, that has a priority so, you can’t see the result as you expected.
I wanted to remove special characters in swift string.
Like [, {, “, &, etc.
let regex = NSRegularExpression(pattern: ".*[^A-Za-z0-9].*", options: nil, error: nil)!
if regex.firstMatchInString(searchTerm!, options: nil, range: NSMakeRange(0, searchTerm!.length)) != nil {
println("could not handle special characters")
}But this kind of solution only support the English Latin alphabets.
In these solutions, I have to write all the characters in the Regex
Above solutions was not suit with my case.
This is my solution. You can use CharacterSet.punctuationCharacters
This is the output.
hello, (Nice to- meet 한국 école %&$you all. 123 ! Давай العربية 😀hello Nice…

Dropout from Physics, self-taught and worked on the IT industry as a Dev/Design/Planning for 8 years. And I had run my Startup for 3 years. I fancy a ☔️ 🇬🇧