« first day (2428 days earlier)      last day (512 days later) » 

04:55
@TheTiger Hi bro there ?
you have any idea how to give left padding in textfield
05:11
func setLeftPaddingPoints(_ amount:CGFloat){
let paddingView = UIView(frame: CGRect(x: 0, y: 0, width: amount, height: self.frame.size.height))
self.leftView = paddingView
self.leftViewMode = .always
}
@GurumoorthyArumugam use this one bro
txtName.setLeftPaddingPoints(5.0)
"5.0" is padding from left side
u can increase more as per ur requirement
extension UITextField {
func setLeftPaddingPoints(_ amount:CGFloat){
let paddingView = UIView(frame: CGRect(x: 0, y: 0, width: amount, height: self.frame.size.height))
self.leftView = paddingView
self.leftViewMode = .always
}

}
use extension
outside class
06:00
@DilipTiwari this one is best.. Thank you bro..
@GurumoorthyArumugam Assign leftView and set its mode to always visible. leftView is a property of textField. You can create a clear background view with any frame.
Oh you already got the same answer
hi folks
UItableview seperator gets hidden when custom cell is called
can anyone suggests why is it happening'
@DilipTiwari
06:24
@iMinion Screenshot of your table
@GurumoorthyArumugam welcome bro
@iMinion checking in simulator or real device?
06:40
both Same result
ok
have to checked u have not hidden seperator from storyboard for a tableview
?
or programmatically in ur code?
i m able to see tableview seperator
how to disable rotation in action extension ?
Orientation
I try this '-(BOOL)shouldAutorotate {
return NO;
}
- (UIInterfaceOrientationMask)supportedInterfaceOrientations
{
return UIInterfaceOrientationMaskPortrait;
}'
but not working
@DilipTiwari bro see clearly only one separator next cell separator is missing
06:47
can u share code for cell for row @iMinion
@iMinion check in real device
ITS happening in real divice only
let project = nearbyProjects[indexPath.row]
return tableView.dequeueProjectCell(forIndexPath: indexPath, withProject: project)
this is the code
cell for row complete code
?
yes this is it
return tableView.dequeueProjectCell(forIndexPath: indexPath, withProject: project) >>>> calls
extension UITableView {
func dequeueProjectCell(forIndexPath indexPath: IndexPath, withProject project: Project?) -> ProjectCell {
let cell = dequeue(cellType: ProjectCell.self, for: indexPath)

cell.project = project

return cell
}
}
ProjectCell is designed in SB
@iMinion ok
check ur storyboard tableview disable or any code in ur class where u have written seperator code ?
that might be only issue i can see
06:57
If separator is disabled in storyboard not even one would be visible bro ,it would have vanished completely
yes correct
check u have written anything for indexpath.row condition to show and hide seperator
and better is to remove cell and add new one and check same issue is happening
Bro actually there is a condition where if location access is there I am picking one type of cell n when acesss is not there another type of cell
 
1 hour later…
08:10
ok
08:25
Can somebody help me? I'm dying here (having a exhibition today)!!

- Angular 6+ App
- RxJS6+
- Angular Material
--> Problem: Angular Material Table (mat-table) UI does NOT refresh (after an async update[http] to the dataSource -> added to Array)

The freaking UI doesn't update WHATEVER I DO!!

Tried:
- add to Array -> origin.push(addedArray[0]);
- add to Array -> origin.concat(addedArray);
- reset Datasource -> dataSource = new MatTableDataSource(origin.concat(addedArray))
- re-render Table -> this.table.renderRows();

« first day (2428 days earlier)      last day (512 days later) »