Value of type 'UIScrollView?' has no member 'delagate' [closed]












-2















I'm getting an error




Value of type 'UIScrollView?' has no member 'delagate'




I have been following this tutorial on youtube
https://www.youtube.com/watch?v=AgUubgI-ZjI&feature=share



How can I fix this?



@IBOutlet weak var pageControl:UIPageControl!
@IBOutlet weak var scrollView:UIScrollView!

var images: [String] = ["About","Fidget Balancer","Home"]
var frame = CGRect(x:0,y:0,width:0,height:0)

override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
pageControl.numberOfPages = images.count
for index in 0..<images.count {
frame.origin.x = scrollView.frame.size.width * CGFloat(index)
frame.size = scrollView.frame.size

let imgView = UIImageView(frame: frame)
imgView.image = UIImage(named: images[index])
self.scrollView.addSubview(imgView)
}
scrollView.contentSize = CGSize(width: (scrollView.frame.size.width * CGFloat(images.count)), height: scrollView.frame.size.height)
scrollView.delagate = self
}

//Scrollview Method
// ==============================
func scrollViewDidEndDecelerating(_ scrollView: UIScrollView) {
var pageNumber = scrollView.contentOffset.x / scrollView.frame.size.width
pageControl.currentPage = Int (pageNumber)
}









share|improve this question















closed as off-topic by ayaio, Tamás Sengel, blue-phoenox, Paul Roub, rmaddy Nov 20 '18 at 15:34


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question was caused by a problem that can no longer be reproduced or a simple typographical error. While similar questions may be on-topic here, this one was resolved in a manner unlikely to help future readers. This can often be avoided by identifying and closely inspecting the shortest program necessary to reproduce the problem before posting." – ayaio, Tamás Sengel, blue-phoenox, Paul Roub, rmaddy

If this question can be reworded to fit the rules in the help center, please edit the question.












  • 4





    delegate. Please use the autocomplete next time. I'm pretty sure the tutorial also says the same thing.

    – Rakesha Shastri
    Nov 20 '18 at 10:52
















-2















I'm getting an error




Value of type 'UIScrollView?' has no member 'delagate'




I have been following this tutorial on youtube
https://www.youtube.com/watch?v=AgUubgI-ZjI&feature=share



How can I fix this?



@IBOutlet weak var pageControl:UIPageControl!
@IBOutlet weak var scrollView:UIScrollView!

var images: [String] = ["About","Fidget Balancer","Home"]
var frame = CGRect(x:0,y:0,width:0,height:0)

override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
pageControl.numberOfPages = images.count
for index in 0..<images.count {
frame.origin.x = scrollView.frame.size.width * CGFloat(index)
frame.size = scrollView.frame.size

let imgView = UIImageView(frame: frame)
imgView.image = UIImage(named: images[index])
self.scrollView.addSubview(imgView)
}
scrollView.contentSize = CGSize(width: (scrollView.frame.size.width * CGFloat(images.count)), height: scrollView.frame.size.height)
scrollView.delagate = self
}

//Scrollview Method
// ==============================
func scrollViewDidEndDecelerating(_ scrollView: UIScrollView) {
var pageNumber = scrollView.contentOffset.x / scrollView.frame.size.width
pageControl.currentPage = Int (pageNumber)
}









share|improve this question















closed as off-topic by ayaio, Tamás Sengel, blue-phoenox, Paul Roub, rmaddy Nov 20 '18 at 15:34


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question was caused by a problem that can no longer be reproduced or a simple typographical error. While similar questions may be on-topic here, this one was resolved in a manner unlikely to help future readers. This can often be avoided by identifying and closely inspecting the shortest program necessary to reproduce the problem before posting." – ayaio, Tamás Sengel, blue-phoenox, Paul Roub, rmaddy

If this question can be reworded to fit the rules in the help center, please edit the question.












  • 4





    delegate. Please use the autocomplete next time. I'm pretty sure the tutorial also says the same thing.

    – Rakesha Shastri
    Nov 20 '18 at 10:52














-2












-2








-2








I'm getting an error




Value of type 'UIScrollView?' has no member 'delagate'




I have been following this tutorial on youtube
https://www.youtube.com/watch?v=AgUubgI-ZjI&feature=share



How can I fix this?



@IBOutlet weak var pageControl:UIPageControl!
@IBOutlet weak var scrollView:UIScrollView!

var images: [String] = ["About","Fidget Balancer","Home"]
var frame = CGRect(x:0,y:0,width:0,height:0)

override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
pageControl.numberOfPages = images.count
for index in 0..<images.count {
frame.origin.x = scrollView.frame.size.width * CGFloat(index)
frame.size = scrollView.frame.size

let imgView = UIImageView(frame: frame)
imgView.image = UIImage(named: images[index])
self.scrollView.addSubview(imgView)
}
scrollView.contentSize = CGSize(width: (scrollView.frame.size.width * CGFloat(images.count)), height: scrollView.frame.size.height)
scrollView.delagate = self
}

//Scrollview Method
// ==============================
func scrollViewDidEndDecelerating(_ scrollView: UIScrollView) {
var pageNumber = scrollView.contentOffset.x / scrollView.frame.size.width
pageControl.currentPage = Int (pageNumber)
}









share|improve this question
















I'm getting an error




Value of type 'UIScrollView?' has no member 'delagate'




I have been following this tutorial on youtube
https://www.youtube.com/watch?v=AgUubgI-ZjI&feature=share



How can I fix this?



@IBOutlet weak var pageControl:UIPageControl!
@IBOutlet weak var scrollView:UIScrollView!

var images: [String] = ["About","Fidget Balancer","Home"]
var frame = CGRect(x:0,y:0,width:0,height:0)

override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
pageControl.numberOfPages = images.count
for index in 0..<images.count {
frame.origin.x = scrollView.frame.size.width * CGFloat(index)
frame.size = scrollView.frame.size

let imgView = UIImageView(frame: frame)
imgView.image = UIImage(named: images[index])
self.scrollView.addSubview(imgView)
}
scrollView.contentSize = CGSize(width: (scrollView.frame.size.width * CGFloat(images.count)), height: scrollView.frame.size.height)
scrollView.delagate = self
}

//Scrollview Method
// ==============================
func scrollViewDidEndDecelerating(_ scrollView: UIScrollView) {
var pageNumber = scrollView.contentOffset.x / scrollView.frame.size.width
pageControl.currentPage = Int (pageNumber)
}






ios swift uiscrollview






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 20 '18 at 11:17









ayaio

58.1k20132187




58.1k20132187










asked Nov 20 '18 at 10:50









Tropical FallsTropical Falls

14




14




closed as off-topic by ayaio, Tamás Sengel, blue-phoenox, Paul Roub, rmaddy Nov 20 '18 at 15:34


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question was caused by a problem that can no longer be reproduced or a simple typographical error. While similar questions may be on-topic here, this one was resolved in a manner unlikely to help future readers. This can often be avoided by identifying and closely inspecting the shortest program necessary to reproduce the problem before posting." – ayaio, Tamás Sengel, blue-phoenox, Paul Roub, rmaddy

If this question can be reworded to fit the rules in the help center, please edit the question.







closed as off-topic by ayaio, Tamás Sengel, blue-phoenox, Paul Roub, rmaddy Nov 20 '18 at 15:34


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question was caused by a problem that can no longer be reproduced or a simple typographical error. While similar questions may be on-topic here, this one was resolved in a manner unlikely to help future readers. This can often be avoided by identifying and closely inspecting the shortest program necessary to reproduce the problem before posting." – ayaio, Tamás Sengel, blue-phoenox, Paul Roub, rmaddy

If this question can be reworded to fit the rules in the help center, please edit the question.








  • 4





    delegate. Please use the autocomplete next time. I'm pretty sure the tutorial also says the same thing.

    – Rakesha Shastri
    Nov 20 '18 at 10:52














  • 4





    delegate. Please use the autocomplete next time. I'm pretty sure the tutorial also says the same thing.

    – Rakesha Shastri
    Nov 20 '18 at 10:52








4




4





delegate. Please use the autocomplete next time. I'm pretty sure the tutorial also says the same thing.

– Rakesha Shastri
Nov 20 '18 at 10:52





delegate. Please use the autocomplete next time. I'm pretty sure the tutorial also says the same thing.

– Rakesha Shastri
Nov 20 '18 at 10:52












2 Answers
2






active

oldest

votes


















0














there is no word delagate, it is called delegate
https://developer.apple.com/documentation/uikit/uiscrollviewdelegate






share|improve this answer
























  • Thanks for helping!

    – Tropical Falls
    Nov 20 '18 at 11:28



















0














Replace



scrollView.delagate = self


with



scrollView.delegate = self


And make sure your class conforms to UIScrollViewDelegate






share|improve this answer
























  • Thanks for helping!

    – Tropical Falls
    Nov 20 '18 at 11:28


















2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














there is no word delagate, it is called delegate
https://developer.apple.com/documentation/uikit/uiscrollviewdelegate






share|improve this answer
























  • Thanks for helping!

    – Tropical Falls
    Nov 20 '18 at 11:28
















0














there is no word delagate, it is called delegate
https://developer.apple.com/documentation/uikit/uiscrollviewdelegate






share|improve this answer
























  • Thanks for helping!

    – Tropical Falls
    Nov 20 '18 at 11:28














0












0








0







there is no word delagate, it is called delegate
https://developer.apple.com/documentation/uikit/uiscrollviewdelegate






share|improve this answer













there is no word delagate, it is called delegate
https://developer.apple.com/documentation/uikit/uiscrollviewdelegate







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 20 '18 at 11:08









Akos KomuvesAkos Komuves

418




418













  • Thanks for helping!

    – Tropical Falls
    Nov 20 '18 at 11:28



















  • Thanks for helping!

    – Tropical Falls
    Nov 20 '18 at 11:28

















Thanks for helping!

– Tropical Falls
Nov 20 '18 at 11:28





Thanks for helping!

– Tropical Falls
Nov 20 '18 at 11:28













0














Replace



scrollView.delagate = self


with



scrollView.delegate = self


And make sure your class conforms to UIScrollViewDelegate






share|improve this answer
























  • Thanks for helping!

    – Tropical Falls
    Nov 20 '18 at 11:28
















0














Replace



scrollView.delagate = self


with



scrollView.delegate = self


And make sure your class conforms to UIScrollViewDelegate






share|improve this answer
























  • Thanks for helping!

    – Tropical Falls
    Nov 20 '18 at 11:28














0












0








0







Replace



scrollView.delagate = self


with



scrollView.delegate = self


And make sure your class conforms to UIScrollViewDelegate






share|improve this answer













Replace



scrollView.delagate = self


with



scrollView.delegate = self


And make sure your class conforms to UIScrollViewDelegate







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 20 '18 at 10:55









Sh_KhanSh_Khan

43.7k51329




43.7k51329













  • Thanks for helping!

    – Tropical Falls
    Nov 20 '18 at 11:28



















  • Thanks for helping!

    – Tropical Falls
    Nov 20 '18 at 11:28

















Thanks for helping!

– Tropical Falls
Nov 20 '18 at 11:28





Thanks for helping!

– Tropical Falls
Nov 20 '18 at 11:28



Popular posts from this blog

鏡平學校

ꓛꓣだゔៀៅຸ໢ທຮ໕໒ ,ໂ'໥໓າ໼ឨឲ៵៭ៈゎゔit''䖳𥁄卿' ☨₤₨こゎもょの;ꜹꟚꞖꞵꟅꞛေၦေɯ,ɨɡ𛃵𛁹ޝ޳ޠ޾,ޤޒޯ޾𫝒𫠁သ𛅤チョ'サノބޘދ𛁐ᶿᶇᶀᶋᶠ㨑㽹⻮ꧬ꧹؍۩وَؠ㇕㇃㇪ ㇦㇋㇋ṜẰᵡᴠ 軌ᵕ搜۳ٰޗޮ޷ސޯ𫖾𫅀ल, ꙭ꙰ꚅꙁꚊꞻꝔ꟠Ꝭㄤﺟޱސꧨꧼ꧴ꧯꧽ꧲ꧯ'⽹⽭⾁⿞⼳⽋២៩ញណើꩯꩤ꩸ꩮᶻᶺᶧᶂ𫳲𫪭𬸄𫵰𬖩𬫣𬊉ၲ𛅬㕦䬺𫝌𫝼,,𫟖𫞽ហៅ஫㆔ాఆఅꙒꚞꙍ,Ꙟ꙱エ ,ポテ,フࢰࢯ𫟠𫞶 𫝤𫟠ﺕﹱﻜﻣ𪵕𪭸𪻆𪾩𫔷ġ,ŧآꞪ꟥,ꞔꝻ♚☹⛵𛀌ꬷꭞȄƁƪƬșƦǙǗdžƝǯǧⱦⱰꓕꓢႋ神 ဴ၀க௭எ௫ឫោ ' េㇷㇴㇼ神ㇸㇲㇽㇴㇼㇻㇸ'ㇸㇿㇸㇹㇰㆣꓚꓤ₡₧ ㄨㄟ㄂ㄖㄎ໗ツڒذ₶।ऩछएोञयूटक़कयँृी,冬'𛅢𛅥ㇱㇵㇶ𥄥𦒽𠣧𠊓𧢖𥞘𩔋цѰㄠſtʯʭɿʆʗʍʩɷɛ,əʏダヵㄐㄘR{gỚṖḺờṠṫảḙḭᴮᵏᴘᵀᵷᵕᴜᴏᵾq﮲ﲿﴽﭙ軌ﰬﶚﶧ﫲Ҝжюїкӈㇴffצּ﬘﭅﬈軌'ffistfflſtffतभफɳɰʊɲʎ𛁱𛁖𛁮𛀉 𛂯𛀞నఋŀŲ 𫟲𫠖𫞺ຆຆ ໹້໕໗ๆทԊꧢꧠ꧰ꓱ⿝⼑ŎḬẃẖỐẅ ,ờỰỈỗﮊDžȩꭏꭎꬻ꭮ꬿꭖꭥꭅ㇭神 ⾈ꓵꓑ⺄㄄ㄪㄙㄅㄇstA۵䞽ॶ𫞑𫝄㇉㇇゜軌𩜛𩳠Jﻺ‚Üမ႕ႌႊၐၸဓၞၞၡ៸wyvtᶎᶪᶹစဎ꣡꣰꣢꣤ٗ؋لㇳㇾㇻㇱ㆐㆔,,㆟Ⱶヤマފ޼ޝަݿݞݠݷݐ',ݘ,ݪݙݵ𬝉𬜁𫝨𫞘くせぉて¼óû×ó£…𛅑הㄙくԗԀ5606神45,神796'𪤻𫞧ꓐ㄁ㄘɥɺꓵꓲ3''7034׉ⱦⱠˆ“𫝋ȍ,ꩲ軌꩷ꩶꩧꩫఞ۔فڱێظペサ神ナᴦᵑ47 9238їﻂ䐊䔉㠸﬎ffiﬣ,לּᴷᴦᵛᵽ,ᴨᵤ ᵸᵥᴗᵈꚏꚉꚟ⻆rtǟƴ𬎎

Why https connections are so slow when debugging (stepping over) in Java?