Label, font programmatically
I need help in this view.
I have to solve these things:
- instead of the 2 "duck" labels, I need to have different label.text
with different fonts. I used this method here, in which I assign all the fonts to my datasource and assign the label to it by changing the font. the final result must be, for example, "duck" "ciccio" and "another"..
- At the moment the view in which to insert the text is not connected to the colors or the fonts, I have to be able to insert the text and then if I click on a color it automatically changes the color to the written text and so the same thing for the fonts ..
What do I have to do?
I am attaching part of the code, only the one in which I put the "duck" label and the controller of the whole view.
that I have now
class CollectionFont: UIViewController, UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout
weak var delegate: FontDelegate?
var collectionView: UICollectionView?
let cellSpacing:CGFloat = 1
let indexPath: IndexPath
var datasource: [UIFont] =
var imageArray: Array<UIImageView> =
var onceOnly = false
init(datasource: [UIFont], index: IndexPath = [0,0])
self.indexPath = index
self.datasource = Theme.CustomFontsFamily.customFonts
super.init(nibName: nil, bundle: nil)
override func viewDidLoad()
super.viewDidLoad()
collectionView?.delegate = self
collectionView = UICollectionView(frame: CGRect.zero, collectionViewLayout: UICollectionViewLayout())
collectionView!.translatesAutoresizingMaskIntoConstraints = false
view.addSubview(collectionView!)
collectionView!.activate(constraint(edgesTo: self.view))
collectionView!.backgroundColor = Theme.Colors.sky
let collectionViewFlowLayout = UICollectionViewFlowLayout()
collectionView!.setCollectionViewLayout(collectionViewFlowLayout, animated: true)
collectionViewFlowLayout.scrollDirection = .horizontal
collectionViewFlowLayout.sectionInset = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0)
collectionViewFlowLayout.minimumLineSpacing = 0
collectionViewFlowLayout.minimumInteritemSpacing = 0
collectionView!.register(FontCell.self, forCellWithReuseIdentifier: FontCell.reuseIdentifier)
collectionView!.delegate = self
collectionView!.dataSource = self
collectionView!.isPagingEnabled = true
collectionView!.bounces = false
self.collectionView?.reloadData()
class FontRound
let font: UILabel
init(font: UILabel)
self.font = font
required init?(coder aDecoder: NSCoder)
fatalError("init(coder:) has not been implemented")
required init?(coder aDecoder: NSCoder)
fatalError("init(coder:) has not been implemented")
func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int
return self.datasource.count
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: FontCell.reuseIdentifier, for: indexPath) as! FontCell
cell.array.font = self.datasource[indexPath.row]
return cell
//UICollectionViewDelegateFlowLayout - constraint della collecion view da innestare
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize
let width = UIScreen.main.bounds.size.width/4
let height = UIScreen.main.bounds.size.width/4
return CGSize(width: width, height: height)
func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath)
debugPrint("sucaaaa")
func scrollViewDidEndDecelerating(_ scrollView: UIScrollView)
var visibleRect = CGRect()
visibleRect.origin = collectionView!.contentOffset
visibleRect.size = collectionView!.bounds.size
let visiblePoint = CGPoint(x: visibleRect.midX, y: visibleRect.midY)
guard let indexPath = collectionView!.indexPathForItem(at: visiblePoint) else return
print(indexPath[1])
self.delegate?.sincronizeScroll(indexPath: indexPath)
internal func collectionView(_ collectionView: UICollectionView, willDisplay cell: UICollectionViewCell, forItemAt indexPath: IndexPath)
if !onceOnly
//set the row and section you need.
collectionView.scrollToItem(at: self.indexPath, at: UICollectionView.ScrollPosition.right, animated: false)
onceOnly = true
final class CollectionFontView: UICollectionView
init(_ collectionViewLayout: UICollectionViewLayout)
super.init(frame: .zero, collectionViewLayout: collectionViewLayout)
self.backgroundColor = UIColor.red
self.showsHorizontalScrollIndicator = false
register(FontCell.self, forCellWithReuseIdentifier: FontCell.reuseIdentifier)
required init?(coder aDecoder: NSCoder)
fatalError("init(coder:) has not been implemented")
class FontCell: UICollectionViewCell
static let reuseIdentifier = "FontCell_RID"
override init(frame: CGRect)
super.init(frame: frame)
setupViews()
var cellID: String?
var array = UILabel().then
$0.text = "duck"
$0.font = UIFont(name:"Jellee-Roman",size:15)
$0.contentMode = UIView.ContentMode.scaleAspectFit
$0.layer.cornerRadius = (((UIScreen.main.bounds.size.width/8)*0.8)/2)
func setupViews()
self.addSubview(self.array)
self.array.activate([
array.widthAnchor.constraint(equalTo: self.widthAnchor, multiplier: 0.8),
array.heightAnchor.constraint(equalTo: self.array.widthAnchor),
array.centerXAnchor.constraint(equalTo: self.centerXAnchor),
array.centerYAnchor.constraint(equalTo: self.centerYAnchor),
])
func setContents(container: UILabel)
for sv in self.contentView.subviews
sv.removeFromSuperview()
self.contentView.addSubview(container)
container.activate(constraint(edgesTo: self.contentView))
required init?(coder aDecoder: NSCoder)
fatalError("init(coder:) has not been implemented")
swift fonts textview label
|
show 2 more comments
I need help in this view.
I have to solve these things:
- instead of the 2 "duck" labels, I need to have different label.text
with different fonts. I used this method here, in which I assign all the fonts to my datasource and assign the label to it by changing the font. the final result must be, for example, "duck" "ciccio" and "another"..
- At the moment the view in which to insert the text is not connected to the colors or the fonts, I have to be able to insert the text and then if I click on a color it automatically changes the color to the written text and so the same thing for the fonts ..
What do I have to do?
I am attaching part of the code, only the one in which I put the "duck" label and the controller of the whole view.
that I have now
class CollectionFont: UIViewController, UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout
weak var delegate: FontDelegate?
var collectionView: UICollectionView?
let cellSpacing:CGFloat = 1
let indexPath: IndexPath
var datasource: [UIFont] =
var imageArray: Array<UIImageView> =
var onceOnly = false
init(datasource: [UIFont], index: IndexPath = [0,0])
self.indexPath = index
self.datasource = Theme.CustomFontsFamily.customFonts
super.init(nibName: nil, bundle: nil)
override func viewDidLoad()
super.viewDidLoad()
collectionView?.delegate = self
collectionView = UICollectionView(frame: CGRect.zero, collectionViewLayout: UICollectionViewLayout())
collectionView!.translatesAutoresizingMaskIntoConstraints = false
view.addSubview(collectionView!)
collectionView!.activate(constraint(edgesTo: self.view))
collectionView!.backgroundColor = Theme.Colors.sky
let collectionViewFlowLayout = UICollectionViewFlowLayout()
collectionView!.setCollectionViewLayout(collectionViewFlowLayout, animated: true)
collectionViewFlowLayout.scrollDirection = .horizontal
collectionViewFlowLayout.sectionInset = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0)
collectionViewFlowLayout.minimumLineSpacing = 0
collectionViewFlowLayout.minimumInteritemSpacing = 0
collectionView!.register(FontCell.self, forCellWithReuseIdentifier: FontCell.reuseIdentifier)
collectionView!.delegate = self
collectionView!.dataSource = self
collectionView!.isPagingEnabled = true
collectionView!.bounces = false
self.collectionView?.reloadData()
class FontRound
let font: UILabel
init(font: UILabel)
self.font = font
required init?(coder aDecoder: NSCoder)
fatalError("init(coder:) has not been implemented")
required init?(coder aDecoder: NSCoder)
fatalError("init(coder:) has not been implemented")
func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int
return self.datasource.count
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: FontCell.reuseIdentifier, for: indexPath) as! FontCell
cell.array.font = self.datasource[indexPath.row]
return cell
//UICollectionViewDelegateFlowLayout - constraint della collecion view da innestare
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize
let width = UIScreen.main.bounds.size.width/4
let height = UIScreen.main.bounds.size.width/4
return CGSize(width: width, height: height)
func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath)
debugPrint("sucaaaa")
func scrollViewDidEndDecelerating(_ scrollView: UIScrollView)
var visibleRect = CGRect()
visibleRect.origin = collectionView!.contentOffset
visibleRect.size = collectionView!.bounds.size
let visiblePoint = CGPoint(x: visibleRect.midX, y: visibleRect.midY)
guard let indexPath = collectionView!.indexPathForItem(at: visiblePoint) else return
print(indexPath[1])
self.delegate?.sincronizeScroll(indexPath: indexPath)
internal func collectionView(_ collectionView: UICollectionView, willDisplay cell: UICollectionViewCell, forItemAt indexPath: IndexPath)
if !onceOnly
//set the row and section you need.
collectionView.scrollToItem(at: self.indexPath, at: UICollectionView.ScrollPosition.right, animated: false)
onceOnly = true
final class CollectionFontView: UICollectionView
init(_ collectionViewLayout: UICollectionViewLayout)
super.init(frame: .zero, collectionViewLayout: collectionViewLayout)
self.backgroundColor = UIColor.red
self.showsHorizontalScrollIndicator = false
register(FontCell.self, forCellWithReuseIdentifier: FontCell.reuseIdentifier)
required init?(coder aDecoder: NSCoder)
fatalError("init(coder:) has not been implemented")
class FontCell: UICollectionViewCell
static let reuseIdentifier = "FontCell_RID"
override init(frame: CGRect)
super.init(frame: frame)
setupViews()
var cellID: String?
var array = UILabel().then
$0.text = "duck"
$0.font = UIFont(name:"Jellee-Roman",size:15)
$0.contentMode = UIView.ContentMode.scaleAspectFit
$0.layer.cornerRadius = (((UIScreen.main.bounds.size.width/8)*0.8)/2)
func setupViews()
self.addSubview(self.array)
self.array.activate([
array.widthAnchor.constraint(equalTo: self.widthAnchor, multiplier: 0.8),
array.heightAnchor.constraint(equalTo: self.array.widthAnchor),
array.centerXAnchor.constraint(equalTo: self.centerXAnchor),
array.centerYAnchor.constraint(equalTo: self.centerYAnchor),
])
func setContents(container: UILabel)
for sv in self.contentView.subviews
sv.removeFromSuperview()
self.contentView.addSubview(container)
container.activate(constraint(edgesTo: self.contentView))
required init?(coder aDecoder: NSCoder)
fatalError("init(coder:) has not been implemented")
swift fonts textview label
Please add some more of your code from the view controller you're presenting.
– Callam
Nov 14 '18 at 14:38
1
@Callam ok.. I update thx
– user10652382
Nov 14 '18 at 14:42
1
@Callam insert bro.. thx for helping
– user10652382
Nov 14 '18 at 14:49
Could you please write "duck" or something not vulgar? Inside your code or inside the screenshot?
– Larme
Nov 14 '18 at 15:04
@Larme I think I did, what's the problem?
– user10652382
Nov 14 '18 at 15:43
|
show 2 more comments
I need help in this view.
I have to solve these things:
- instead of the 2 "duck" labels, I need to have different label.text
with different fonts. I used this method here, in which I assign all the fonts to my datasource and assign the label to it by changing the font. the final result must be, for example, "duck" "ciccio" and "another"..
- At the moment the view in which to insert the text is not connected to the colors or the fonts, I have to be able to insert the text and then if I click on a color it automatically changes the color to the written text and so the same thing for the fonts ..
What do I have to do?
I am attaching part of the code, only the one in which I put the "duck" label and the controller of the whole view.
that I have now
class CollectionFont: UIViewController, UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout
weak var delegate: FontDelegate?
var collectionView: UICollectionView?
let cellSpacing:CGFloat = 1
let indexPath: IndexPath
var datasource: [UIFont] =
var imageArray: Array<UIImageView> =
var onceOnly = false
init(datasource: [UIFont], index: IndexPath = [0,0])
self.indexPath = index
self.datasource = Theme.CustomFontsFamily.customFonts
super.init(nibName: nil, bundle: nil)
override func viewDidLoad()
super.viewDidLoad()
collectionView?.delegate = self
collectionView = UICollectionView(frame: CGRect.zero, collectionViewLayout: UICollectionViewLayout())
collectionView!.translatesAutoresizingMaskIntoConstraints = false
view.addSubview(collectionView!)
collectionView!.activate(constraint(edgesTo: self.view))
collectionView!.backgroundColor = Theme.Colors.sky
let collectionViewFlowLayout = UICollectionViewFlowLayout()
collectionView!.setCollectionViewLayout(collectionViewFlowLayout, animated: true)
collectionViewFlowLayout.scrollDirection = .horizontal
collectionViewFlowLayout.sectionInset = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0)
collectionViewFlowLayout.minimumLineSpacing = 0
collectionViewFlowLayout.minimumInteritemSpacing = 0
collectionView!.register(FontCell.self, forCellWithReuseIdentifier: FontCell.reuseIdentifier)
collectionView!.delegate = self
collectionView!.dataSource = self
collectionView!.isPagingEnabled = true
collectionView!.bounces = false
self.collectionView?.reloadData()
class FontRound
let font: UILabel
init(font: UILabel)
self.font = font
required init?(coder aDecoder: NSCoder)
fatalError("init(coder:) has not been implemented")
required init?(coder aDecoder: NSCoder)
fatalError("init(coder:) has not been implemented")
func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int
return self.datasource.count
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: FontCell.reuseIdentifier, for: indexPath) as! FontCell
cell.array.font = self.datasource[indexPath.row]
return cell
//UICollectionViewDelegateFlowLayout - constraint della collecion view da innestare
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize
let width = UIScreen.main.bounds.size.width/4
let height = UIScreen.main.bounds.size.width/4
return CGSize(width: width, height: height)
func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath)
debugPrint("sucaaaa")
func scrollViewDidEndDecelerating(_ scrollView: UIScrollView)
var visibleRect = CGRect()
visibleRect.origin = collectionView!.contentOffset
visibleRect.size = collectionView!.bounds.size
let visiblePoint = CGPoint(x: visibleRect.midX, y: visibleRect.midY)
guard let indexPath = collectionView!.indexPathForItem(at: visiblePoint) else return
print(indexPath[1])
self.delegate?.sincronizeScroll(indexPath: indexPath)
internal func collectionView(_ collectionView: UICollectionView, willDisplay cell: UICollectionViewCell, forItemAt indexPath: IndexPath)
if !onceOnly
//set the row and section you need.
collectionView.scrollToItem(at: self.indexPath, at: UICollectionView.ScrollPosition.right, animated: false)
onceOnly = true
final class CollectionFontView: UICollectionView
init(_ collectionViewLayout: UICollectionViewLayout)
super.init(frame: .zero, collectionViewLayout: collectionViewLayout)
self.backgroundColor = UIColor.red
self.showsHorizontalScrollIndicator = false
register(FontCell.self, forCellWithReuseIdentifier: FontCell.reuseIdentifier)
required init?(coder aDecoder: NSCoder)
fatalError("init(coder:) has not been implemented")
class FontCell: UICollectionViewCell
static let reuseIdentifier = "FontCell_RID"
override init(frame: CGRect)
super.init(frame: frame)
setupViews()
var cellID: String?
var array = UILabel().then
$0.text = "duck"
$0.font = UIFont(name:"Jellee-Roman",size:15)
$0.contentMode = UIView.ContentMode.scaleAspectFit
$0.layer.cornerRadius = (((UIScreen.main.bounds.size.width/8)*0.8)/2)
func setupViews()
self.addSubview(self.array)
self.array.activate([
array.widthAnchor.constraint(equalTo: self.widthAnchor, multiplier: 0.8),
array.heightAnchor.constraint(equalTo: self.array.widthAnchor),
array.centerXAnchor.constraint(equalTo: self.centerXAnchor),
array.centerYAnchor.constraint(equalTo: self.centerYAnchor),
])
func setContents(container: UILabel)
for sv in self.contentView.subviews
sv.removeFromSuperview()
self.contentView.addSubview(container)
container.activate(constraint(edgesTo: self.contentView))
required init?(coder aDecoder: NSCoder)
fatalError("init(coder:) has not been implemented")
swift fonts textview label
I need help in this view.
I have to solve these things:
- instead of the 2 "duck" labels, I need to have different label.text
with different fonts. I used this method here, in which I assign all the fonts to my datasource and assign the label to it by changing the font. the final result must be, for example, "duck" "ciccio" and "another"..
- At the moment the view in which to insert the text is not connected to the colors or the fonts, I have to be able to insert the text and then if I click on a color it automatically changes the color to the written text and so the same thing for the fonts ..
What do I have to do?
I am attaching part of the code, only the one in which I put the "duck" label and the controller of the whole view.
that I have now
class CollectionFont: UIViewController, UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout
weak var delegate: FontDelegate?
var collectionView: UICollectionView?
let cellSpacing:CGFloat = 1
let indexPath: IndexPath
var datasource: [UIFont] =
var imageArray: Array<UIImageView> =
var onceOnly = false
init(datasource: [UIFont], index: IndexPath = [0,0])
self.indexPath = index
self.datasource = Theme.CustomFontsFamily.customFonts
super.init(nibName: nil, bundle: nil)
override func viewDidLoad()
super.viewDidLoad()
collectionView?.delegate = self
collectionView = UICollectionView(frame: CGRect.zero, collectionViewLayout: UICollectionViewLayout())
collectionView!.translatesAutoresizingMaskIntoConstraints = false
view.addSubview(collectionView!)
collectionView!.activate(constraint(edgesTo: self.view))
collectionView!.backgroundColor = Theme.Colors.sky
let collectionViewFlowLayout = UICollectionViewFlowLayout()
collectionView!.setCollectionViewLayout(collectionViewFlowLayout, animated: true)
collectionViewFlowLayout.scrollDirection = .horizontal
collectionViewFlowLayout.sectionInset = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0)
collectionViewFlowLayout.minimumLineSpacing = 0
collectionViewFlowLayout.minimumInteritemSpacing = 0
collectionView!.register(FontCell.self, forCellWithReuseIdentifier: FontCell.reuseIdentifier)
collectionView!.delegate = self
collectionView!.dataSource = self
collectionView!.isPagingEnabled = true
collectionView!.bounces = false
self.collectionView?.reloadData()
class FontRound
let font: UILabel
init(font: UILabel)
self.font = font
required init?(coder aDecoder: NSCoder)
fatalError("init(coder:) has not been implemented")
required init?(coder aDecoder: NSCoder)
fatalError("init(coder:) has not been implemented")
func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int
return self.datasource.count
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: FontCell.reuseIdentifier, for: indexPath) as! FontCell
cell.array.font = self.datasource[indexPath.row]
return cell
//UICollectionViewDelegateFlowLayout - constraint della collecion view da innestare
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize
let width = UIScreen.main.bounds.size.width/4
let height = UIScreen.main.bounds.size.width/4
return CGSize(width: width, height: height)
func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath)
debugPrint("sucaaaa")
func scrollViewDidEndDecelerating(_ scrollView: UIScrollView)
var visibleRect = CGRect()
visibleRect.origin = collectionView!.contentOffset
visibleRect.size = collectionView!.bounds.size
let visiblePoint = CGPoint(x: visibleRect.midX, y: visibleRect.midY)
guard let indexPath = collectionView!.indexPathForItem(at: visiblePoint) else return
print(indexPath[1])
self.delegate?.sincronizeScroll(indexPath: indexPath)
internal func collectionView(_ collectionView: UICollectionView, willDisplay cell: UICollectionViewCell, forItemAt indexPath: IndexPath)
if !onceOnly
//set the row and section you need.
collectionView.scrollToItem(at: self.indexPath, at: UICollectionView.ScrollPosition.right, animated: false)
onceOnly = true
final class CollectionFontView: UICollectionView
init(_ collectionViewLayout: UICollectionViewLayout)
super.init(frame: .zero, collectionViewLayout: collectionViewLayout)
self.backgroundColor = UIColor.red
self.showsHorizontalScrollIndicator = false
register(FontCell.self, forCellWithReuseIdentifier: FontCell.reuseIdentifier)
required init?(coder aDecoder: NSCoder)
fatalError("init(coder:) has not been implemented")
class FontCell: UICollectionViewCell
static let reuseIdentifier = "FontCell_RID"
override init(frame: CGRect)
super.init(frame: frame)
setupViews()
var cellID: String?
var array = UILabel().then
$0.text = "duck"
$0.font = UIFont(name:"Jellee-Roman",size:15)
$0.contentMode = UIView.ContentMode.scaleAspectFit
$0.layer.cornerRadius = (((UIScreen.main.bounds.size.width/8)*0.8)/2)
func setupViews()
self.addSubview(self.array)
self.array.activate([
array.widthAnchor.constraint(equalTo: self.widthAnchor, multiplier: 0.8),
array.heightAnchor.constraint(equalTo: self.array.widthAnchor),
array.centerXAnchor.constraint(equalTo: self.centerXAnchor),
array.centerYAnchor.constraint(equalTo: self.centerYAnchor),
])
func setContents(container: UILabel)
for sv in self.contentView.subviews
sv.removeFromSuperview()
self.contentView.addSubview(container)
container.activate(constraint(edgesTo: self.contentView))
required init?(coder aDecoder: NSCoder)
fatalError("init(coder:) has not been implemented")
swift fonts textview label
swift fonts textview label
edited Nov 14 '18 at 21:41
RX9
6112723
6112723
asked Nov 14 '18 at 14:10
user10652382
Please add some more of your code from the view controller you're presenting.
– Callam
Nov 14 '18 at 14:38
1
@Callam ok.. I update thx
– user10652382
Nov 14 '18 at 14:42
1
@Callam insert bro.. thx for helping
– user10652382
Nov 14 '18 at 14:49
Could you please write "duck" or something not vulgar? Inside your code or inside the screenshot?
– Larme
Nov 14 '18 at 15:04
@Larme I think I did, what's the problem?
– user10652382
Nov 14 '18 at 15:43
|
show 2 more comments
Please add some more of your code from the view controller you're presenting.
– Callam
Nov 14 '18 at 14:38
1
@Callam ok.. I update thx
– user10652382
Nov 14 '18 at 14:42
1
@Callam insert bro.. thx for helping
– user10652382
Nov 14 '18 at 14:49
Could you please write "duck" or something not vulgar? Inside your code or inside the screenshot?
– Larme
Nov 14 '18 at 15:04
@Larme I think I did, what's the problem?
– user10652382
Nov 14 '18 at 15:43
Please add some more of your code from the view controller you're presenting.
– Callam
Nov 14 '18 at 14:38
Please add some more of your code from the view controller you're presenting.
– Callam
Nov 14 '18 at 14:38
1
1
@Callam ok.. I update thx
– user10652382
Nov 14 '18 at 14:42
@Callam ok.. I update thx
– user10652382
Nov 14 '18 at 14:42
1
1
@Callam insert bro.. thx for helping
– user10652382
Nov 14 '18 at 14:49
@Callam insert bro.. thx for helping
– user10652382
Nov 14 '18 at 14:49
Could you please write "duck" or something not vulgar? Inside your code or inside the screenshot?
– Larme
Nov 14 '18 at 15:04
Could you please write "duck" or something not vulgar? Inside your code or inside the screenshot?
– Larme
Nov 14 '18 at 15:04
@Larme I think I did, what's the problem?
– user10652382
Nov 14 '18 at 15:43
@Larme I think I did, what's the problem?
– user10652382
Nov 14 '18 at 15:43
|
show 2 more comments
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53302180%2flabel-font-programmatically%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53302180%2flabel-font-programmatically%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Please add some more of your code from the view controller you're presenting.
– Callam
Nov 14 '18 at 14:38
1
@Callam ok.. I update thx
– user10652382
Nov 14 '18 at 14:42
1
@Callam insert bro.. thx for helping
– user10652382
Nov 14 '18 at 14:49
Could you please write "duck" or something not vulgar? Inside your code or inside the screenshot?
– Larme
Nov 14 '18 at 15:04
@Larme I think I did, what's the problem?
– user10652382
Nov 14 '18 at 15:43