Click here to Skip to main content
15,887,928 members

Comments by Ash_savvy (Top 5 by date)

Ash_savvy 4-Jun-19 8:27am View    
extension UIButton{

func setShadow(){
layer.shadowColor = UIColor(red: 0, green: 0, blue: 0, alpha: 0.7).cgColor
layer.shadowOffset = CGSize(width: 0, height: 3)
layer.shadowOpacity = 1.0
layer.shadowRadius = 10.0
layer.masksToBounds = false
}


this code works! write it in extensions class so that we can call the function with a UIButton ref.
Like MyButton.setshadow()
Ash_savvy 4-Jun-19 8:24am View    
Not a Problem! I fixed it! thanks a lot! :)
Ash_savvy 4-Jun-19 3:09am View    
I appreciate your time and effort! Richard!, Thanks a lot!!. It worked for me.
But there is a small issue, which I'm not able to find a solution. I have created a custom class for shadow and assigned that to the appropriate button, shadow and rest everything is works fine, but the button title is not visible. Initially the button fill was white colour, and I change the fill color to my app's theme color (in Custom Class). Even I tried the setTitle property, but. :(
Ash_savvy 4-Feb-18 22:29pm View    
Thank you so much my friend, let me try with Vb.net🙂
Ash_savvy 4-Feb-18 12:33pm View    
Sorry for the typo😄 and I can’t start without appreciating the effort and time that you spent for my code, thank you so much my friend 😃
As you said, I placed the breakpoint at
‘Set xlWB = objExcel.Workbooks.open(xl)’
And I also double checked in Task Manager to ensure whether any instance of excel is active or not. But I came to know that when this line of code is executed - ‘Set xlWB = objExcel.Workbooks.open(xl)’ - I can see Microsoft Excel application in task manager, at that time itself I’m getting that error “This action cannot be complete because the other application is busy”.
Note: In references, the ‘Microsoft Excel 15.0 Object Library’ is checked ✅.