Ana sayfa Mobil Swift 4, Faydalı String Metodları Bölüm 2

Swift 4, Faydalı String Metodları Bölüm 2

1889
280
PAYLAŞ

Merhabalar,

Bu dersimizde Stringlerde kullanabileceğimiz faydalı metodlardan bahsetmeye devam edeceğiz.

Bahsedeceğimiz metodlar:

  1. Bir Stringdeki harfleri küçültme
  2. Bir Stringdeki harfleri büyütme
  3. Bir Stringin uzunluğunu bulma.

1 – Bir Stringdeki harfleri küçültmeyi .lowercased() metodunu kullanarak gerçekleştirebiliriz:

Yukarıdaki kod bloğu çalıştırıldığında “ayşe, ahmet, meric, hasan, özgü, muhammet, emrecan” çıktısını verecektir. Herhangi bir String objesine lowercased() metodunu uyguladığımızda kolayca harflerini küçültebiliyoruz.

2 – Bir Stringdeki harfleri büyütmeyi .uppercased() metodunu kullanarak gerçekleştirebiliriz:

Bu kod bloğu çalıştırıldığında ise çıktı olarak “ISTANBUL, ANKARA, IZMIR, BRIGHTON, BERLIN, MUNICH, LONDON” çıktısını verecektir. .uppercased() metodunu kullanarak basitçe string objelerimizin harflerini büyütebiliyoruz.

3 – Bir Stringin karakter uzunluğunu ise String objemizin sonuna .count diyerek elde edebiliyoruz.

cicek isimli String objemizin karakter sayısını(uzunluğunu) cicek.count olarak görebiliriz. print fonksiyonumuz bize “papatya” kelimesinin uzunluğu olan 7 sayısını dönecektir.

Gördüğünüz gibi Stringlerde gömülü olan .uppercased, .lowercased, .count gibi metodlar sayesinde basit bir şekilde küçültme, büyütme vb işlemleri yapabiliyoruz

Bir sonraki Swift dersinde görüşmek üzere 🙂

280 YORUMLAR

  1. Reparación de lavavajilllas de todas las marcas: Balay, Aspes, Bauknech, Bosch, Candy, Corbero, Crolls, De Dietrich, Electrolux, Fagor, Fleck, General Electric, Hiyasu, Ignis, Indesit, Kelvinator, Liebherr, Miele, Neff, New Pol, Otsein, Rosieres, Siemens, Teka, Toshiba, Vaillant, Whirlpool, Zanussi, Kaysun, Ariston, Lg, Rommer, Taurus, Aeg, Edesa, Firstline, Sauber, Superser, Samsung, Haier.

  2. La cuestión es que me la devolvieron el 1 de Agosto, supuestamente reparada y con actualizaciones correspondientes, al encenderla, dentro de la tienda, comprobé que estaba absolutamente igual que cuando se llevó a reparar, con un informe casi de 2 páginas… Total que la volví a dejar y me la han entregado el 20 de Septiembre, eso sí, en esta ocasión me han cambiado la pantalla… Ahora por lo menos, va bien, aunque como se me había olvidado como iba, me estoy poniendo otra vez al día.

  3. Hemos trabajado por mas de 25 años enfocados en satisfacer plenamente las necesidades y requerimientos de nuestros clientes con servicios de la mejor calidad. Brindamos servicio a domicilio con tan solo una llamada a nuestro call center al Tfn .809.958, programamos su visita el día y la hora que mejor le favorezca. Gracias a nuestro equipo de técnicos garantizamos su reparación pese a no ser el servicio técnico oficial de la casa Bosch en San_Javier.

  4. En la visita del técnico deberá abonar la mano de obra del técnico en la verificación de avería reparación del aparato y piezas en caso de existir una sustitución de las mismas. Electro Asistencia repara todas las marcas y modelos de electrodomesticos y aire acondicionado no siendo SAT oficial de ninguna de ellas. DISPONIBLIDAD EN PIEZAS: Nuestras unidades móviles disponen de todo el material siempre y cuando sean piezas de reparación más frecuentes, en caso de que sean piezas específicas será necesario encargarlas bajo pedido. Necesitamos conocer el modelo exacto de tu Lavadora para poder orientarte mejor.

  5. Nuestro parque de maquinaria y el personal especializado, nos da una alta capacidad de producción que nos permite realizar pequeñas y medianas series de piezas grandes y medianas. Talleres Gara S.A. es una empresa de mecanizados que nace en 1986. F10 Fabricar las piezas en HP Jet Fusion 3D y el utillaje de amarre para CNC de una vez.

  6. Casquillo especial con rosca interior mecanizado por decoletaje en acero © Kuzu, S.L. La aplicación realiza la verificación de cada pieza: Longitud total y diámetro de la pieza, longitud y ancho del grafilado, control de rosca y control dimensional del meplat.

  7. Realizamos decoletaje de piezas en múltiples materiales: acero, aceros templados, latón, cobre, bronce, aluminio y todo tipo de plásticos. Acumula una gran experiencia en el corte fino, lo que le permite añadir un alto valor a sus productos, produciendo piezas de gran precisión y calidad homogénea a menor coste.

  8. The other day, while I was at work, my sister stole
    my apple ipad and tested to see if it can survive a 40 foot drop,
    just so she can be a youtube sensation. My apple ipad is now broken and she has 83 views.
    I know this is entirely off topic but I had to share it
    with someone!

  9. Hmm is anyone else encountering problems with the images on this blog loading? I’m trying to find out if its a problem on my end or if it’s the blog. Any feedback would be greatly appreciated.

  10. Today, I went to the beach front with my children. I found a sea shell and gave it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She put the shell to her ear and screamed. There was a hermit crab inside and it pinched her ear. She never wants to go back! LoL I know this is entirely off topic but I had to tell someone!

  11. Link exchange is nothing else but it is just placing the other person’s web site link on your
    page at appropriate place and other person will also do similar in support of you.

  12. This is really interesting, You are a very skilled blogger. I have joined your feed and look forward to seeking more of your fantastic post. Also, I’ve shared your website in my social networks!

  13. It is really a great and useful piece of info. I’m glad that you shared this helpful information with us. Please keep us up to date like this. Thank you for sharing.

  14. I don’t even know the way I finished up right here, however I assumed this submit was once great. I do not realize who you are however certainly you are going to a well-known blogger when you are not already 😉 Cheers!

  15. I carry on listening to the news broadcast lecture about receiving free online grant applications so I have been looking around for the most excellent site to get one. Could you tell me please, where could i acquire some?

  16. The core of your writing whilst appearing agreeable in the beginning, did not really work very well with me after some time. Somewhere within the paragraphs you were able to make me a believer but only for a very short while. I nevertheless have got a problem with your leaps in logic and you might do nicely to fill in those breaks. In the event that you actually can accomplish that, I could surely end up being fascinated.

  17. Terrific work! This is the kind of info that are supposed to be shared across the net. Disgrace on the search engines for no longer positioning this post higher! Come on over and talk over with my web site . Thank you =)

  18. Sling tv coupons and promo codes for november 2018
    I was suggested this website by means of my cousin. I’m no longer
    sure whether this publish is written through him as no one else
    understand such distinctive approximately my difficulty.
    You’re wonderful! Thank you! Sling tv coupons and promo codes for november 2018

  19. Hi , I do believe this is an excellent blog. I stumbled upon it on Yahoo , i will come back once again. Money and freedom is the best way to change, may you be rich and help other people.

  20. Great write-up, I’m regular visitor of one’s web site, maintain up the excellent operate, and It is going to be a regular visitor for a lengthy time.

  21. Nice post. I was checking constantly this blog and I’m impressed! Extremely useful information particularly the closing phase 🙂 I maintain such info a lot. I used to be seeking this particular info for a long time. Thank you and good luck.

  22. Excellent beat ! I wish to apprentice while you amend your web site, how can i subscribe for a blog site? The account aided me a acceptable deal. I had been a little bit acquainted of this your broadcast provided bright clear concept

  23. Hi there! This is my first visit to your blog! We are a collection of volunteers and starting a new project in a community in the same niche. Your blog provided us useful information to work on. You have done a extraordinary job!

  24. You really make it seem so easy together with your presentation but I to find this matter to be really something which I think I might never understand. It seems too complicated and extremely wide for me. I am having a look forward in your subsequent post, I will attempt to get the dangle of it!

  25. Hey, I think your blog might be having browser
    compatibility issues. When I look at your blog in Safari, it
    looks fine but when opening in Internet Explorer, it has some overlapping.
    I just wanted to give you a quick heads up! Other then that, great blog!

  26. Helpful info. Fortunate me I found your web site by chance, and I’m stunned why this coincidence did not came about earlier! I bookmarked it.

  27. Very nice post. I just stumbled upon your blog and wanted to say that I have truly loved browsing your weblog posts. In any case I will be subscribing for your rss feed and I’m hoping you write again soon!

  28. I?¦ve read several just right stuff here. Certainly price bookmarking for revisiting. I surprise how much attempt you place to create any such fantastic informative website.

  29. 來自瑞士的Teosyal®透明質酸,是由世界第三大以透明質酸為基礎的TEOXANE藥廠研發。Teosyal ®Redensity II® 是專門為眼部肌膚而設計的透明質酸。屬於半鏈結透明質酸的Redensity II® ,輕微吸濕力可減少水腫。 半鏈結透明質酸的柔軟度較高,於注射之後不會產主粒狀問題。可撫平中度皺紋,主要用於淚溝、額紋、手部填充、木偶紋、豐唇、耳珠、太陽穴、人中、面頰填充、虎紋

  30. naturally like your website but you have to check the spelling on several of your posts. A number of them are rife with spelling problems and I find it very troublesome to tell the truth nevertheless I’ll certainly come back again.

  31. Heya i’m for the first time here. I found this board and I find It truly useful & it helped me out much. I hope to give something back and aid others like you helped me.

  32. obviously like your web site but you need to test the spelling on several of your posts. Several of them are rife with spelling issues and I in finding it very bothersome to inform the truth however I?¦ll certainly come again again.

  33. I like what you guys are up also. Such intelligent work and reporting! Carry on the excellent works guys I have incorporated you guys to my blogroll. I think it will improve the value of my site :).

  34. Thank you, I have recently been looking for info about this topic for ages and yours is the greatest I have came upon so far. However, what concerning the conclusion? Are you positive about the supply?

  35. Have you ever thought about creating an e-book or guest authoring on other websites? I have a blog centered on the same ideas you discuss and would really like to have you share some stories/information. I know my readers would appreciate your work. If you’re even remotely interested, feel free to shoot me an e mail.

  36. I do not even understand how I finished up here, but I believed this post used to be good. I do not understand who you are however certainly you are going to a famous blogger in the event you are not already 😉 Cheers!

  37. Hiya, I am really glad I have found this info. Nowadays bloggers publish just about gossips and internet and this is actually annoying. A good website with interesting content, that is what I need. Thanks for keeping this web-site, I’ll be visiting it. Do you do newsletters? Can’t find it.

  38. Great – I should certainly pronounce, impressed with your website. I had no trouble navigating through all the tabs and related information ended up being truly simple to do to access. I recently found what I hoped for before you know it at all. Quite unusual. Is likely to appreciate it for those who add forums or something, web site theme . a tones way for your client to communicate. Nice task.

  39. Hey! This is kind of off topic but I need some advice from an established blog. Is it very difficult to set up your own blog? I’m not very techincal but I can figure things out pretty fast. I’m thinking about setting up my own but I’m not sure where to begin. Do you have any points or suggestions? Many thanks

  40. Hey there! This post couldn’t be written any better! Reading this post reminds me of my old room mate! He always kept chatting about this. I will forward this write-up to him. Fairly certain he will have a good read. Many thanks for sharing!

  41. I do enjoy the manner in which you have presented this challenge plus it really does provide me some fodder for thought. However, from what I have experienced, I basically hope when the actual responses pile on that people continue to be on issue and in no way get started upon a soap box involving the news du jour. Anyway, thank you for this excellent point and whilst I can not necessarily agree with it in totality, I value your point of view.

  42. It’s appropriate time to make some plans for the future and it is time to be happy. I have read this post and if I could I desire to suggest you few interesting things or suggestions. Maybe you can write next articles referring to this article. I wish to read more things about it!

  43. Good day! This is my 1st comment here so I just wanted to give a quick shout out and tell you I really enjoy reading through your posts. Can you recommend any other blogs/websites/forums that cover the same subjects? Appreciate it!

  44. Hi there! This post couldn’t be written any better! Reading through this post reminds me of my previous room mate! He always kept talking about this. I will forward this article to him. Pretty sure he will have a good read. Thank you for sharing!

  45. I just could not depart your site prior to suggesting that I extremely enjoyed the standard information a person provide for your visitors? Is going to be back often to check up on new posts

  46. Hey there! I know this is kinda off topic however I’d figured I’d ask. Would you be interested in exchanging links or maybe guest writing a blog post or vice-versa? My blog discusses a lot of the same topics as yours and I feel we could greatly benefit from each other. If you are interested feel free to shoot me an email. I look forward to hearing from you! Awesome blog by the way!

  47. Thank you for another informative site. Where else could I get that type of info written in such a perfect way? I’ve a project that I am just now working on, and I have been on the look out for such info.

  48. Magnificent beat ! I would like to apprentice even as you amend your web site, how can i subscribe for a weblog site? The account helped me a applicable deal. I have been a little bit familiar of this your broadcast provided vibrant clear concept

  49. Does your website have a contact page? I’m having trouble locating it but, I’d like to send you an e-mail. I’ve got some suggestions for your blog you might be interested in hearing. Either way, great site and I look forward to seeing it improve over time.

  50. Wow! This could be one particular of the most beneficial blogs We’ve ever arrive across on this subject. Actually Wonderful. I am also a specialist in this topic so I can understand your effort.

  51. Thank you for sharing excellent informations. Your website is very cool. I am impressed by the details that you have on this site. It reveals how nicely you perceive this subject. Bookmarked this web page, will come back for extra articles. You, my pal, ROCK! I found simply the information I already searched everywhere and just couldn’t come across. What a great web site.

  52. Today, I went to the beach with my children. I found a sea shell and gave it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She put the shell to her ear and screamed. There was a hermit crab inside and it pinched her ear. She never wants to go back! LoL I know this is entirely off topic but I had to tell someone!

  53. obviously like your web-site but you have to take a look at the spelling on several of your posts. Several of them are rife with spelling problems and I find it very troublesome to tell the reality however I’ll surely come again again.

  54. Great goods from you, man. I have consider your stuff previous to and you are simply too fantastic. I really like what you have acquired right here, really like what you’re saying and the way in which you assert it. You’re making it enjoyable and you still take care of to keep it sensible. I can’t wait to learn far more from you. That is actually a great website.

  55. What i don’t realize is in fact how you’re no longer actually a lot more smartly-appreciated than you may be right now. You are very intelligent. You already know thus significantly in the case of this topic, made me in my view consider it from so many various angles. Its like women and men aren’t involved until it is one thing to do with Girl gaga! Your individual stuffs great. Always care for it up!

  56. It’s appropriate time to make some plans for the long run and it’s time to be happy. I have learn this publish and if I may I desire to recommend you few attention-grabbing things or advice. Perhaps you can write subsequent articles referring to this article. I desire to read even more things about it!

  57. Great blog here! Also your site loads up fast! What host are you using? Can I get your affiliate link to your host? I wish my website loaded up as fast as yours lol

  58. Do you have a spam issue on this site; I also am a blogger, and I was curious about your situation; we have created some nice procedures and we are looking to swap techniques with others, be sure to shoot me an email if interested.

  59. Hi my loved one! I wish to say that this article is awesome, great written and include approximately all vital infos. I would like to look extra posts like this .

  60. It’s appropriate time to make some plans for the future and it is time to be happy. I’ve read this post and if I could I want to suggest you some interesting things or advice. Maybe you could write next articles referring to this article. I want to read even more things about it!

  61. Everything is very open and very clear explanation of issues. was truly information. Your website is very useful. Thanks for sharing.

  62. I like the valuable information you provide in your articles. I’ll bookmark your blog and check once more here frequently. I am relatively sure I’ll be informed many new stuff right here! Best of luck for the following!

  63. Hmm it seems like your website ate my first comment (it was extremely long) so I guess I’ll just sum it up what I submitted and say, I’m thoroughly enjoying your blog. I as well am an aspiring blog blogger but I’m still new to everything. Do you have any helpful hints for newbie blog writers? I’d definitely appreciate it.

  64. What i do not understood is in fact how you’re now not really a lot more neatly-favored than you may be now. You are very intelligent. You already know thus considerably in terms of this matter, produced me in my opinion consider it from a lot of varied angles. Its like women and men don’t seem to be interested except it is something to do with Woman gaga! Your individual stuffs outstanding. At all times care for it up!

  65. I cling on to listening to the newscast lecture about getting boundless online grant applications so I have been looking around for the best site to get one. Could you advise me please, where could i get some?

  66. I’m still learning from you, as I’m trying to achieve my goals. I absolutely love reading everything that is written on your site.Keep the stories coming. I enjoyed it!

  67. I enjoy you because of each of your effort on this site. My mom takes pleasure in going through internet research and it’s really easy to understand why. A lot of people hear all regarding the powerful form you make informative tips and tricks on your web blog and even increase response from people on the subject so our own princess has been learning a lot of things. Take advantage of the rest of the new year. You have been doing a superb job.

  68. magnificent submit, very informative. I wonder why the opposite experts of this sector don’t realize this. You should continue your writing. I am sure, you’ve a huge readers’ base already!

  69. I have been absent for a while, but now I remember why I used to love this site. Thanks, I will try and check back more frequently. How frequently you update your website?

  70. Hello, Neat post. There is a problem together with your website in internet explorer, would check this… IE nonetheless is the market chief and a big component of people will miss your magnificent writing because of this problem.

  71. Hmm it seems like your site ate my first comment (it was extremely long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog. I as well am an aspiring blog blogger but I’m still new to everything. Do you have any points for first-time blog writers? I’d certainly appreciate it.

  72. It’s a shame you don’t have a donate button! I’d most certainly donate to this fantastic blog! I guess for now i’ll settle for bookmarking and adding your RSS feed to my Google account. I look forward to fresh updates and will talk about this blog with my Facebook group. Chat soon!

  73. Great post. I was checking constantly this weblog and I am inspired! Very useful information specifically the closing phase 🙂 I deal with such info much. I was looking for this certain info for a long time. Thanks and best of luck.

  74. hey there and thanks in your info – I have certainly picked up something new from right here. I did however experience several technical points using this web site, since I skilled to reload the website lots of instances previous to I may get it to load correctly. I were wondering if your web host is OK? Now not that I’m complaining, however sluggish loading instances times will sometimes have an effect on your placement in google and could damage your high quality rating if ads and ***********|advertising|advertising|advertising and *********** with Adwords. Anyway I am adding this RSS to my e-mail and could look out for much more of your respective exciting content. Ensure that you update this once more very soon..

  75. After study a couple of of the blog posts on your web site now, and I actually like your manner of blogging. I bookmarked it to my bookmark web site listing and might be checking again soon. Pls check out my web site as properly and let me know what you think.

  76. Hi there just wanted to give you a brief heads up and let you know
    a few of the pictures aren’t loading properly. I’m not sure why but I think its a linking issue.

    I’ve tried it in two different browsers and both show the same outcome.

  77. We’re a gaggle of volunteers and starting a new scheme in our community.
    Your web site offered us with valuable info to work on. You have performed an impressive task and our entire group might be grateful to you.

  78. Hi there, I found your website via Google whilst searching for a related
    subject, your web site got here up, it appears to be like good.

    I have bookmarked it in my google bookmarks.

    Hello there, just became alert to your blog through Google, and found that it is really informative.
    I’m going to watch out for brussels. I will appreciate for those who proceed this in future.
    Numerous other folks will be benefited out of your writing.
    Cheers!

  79. Hey there! This is kind of off topic but I need some help from an established blog.
    Is it very hard to set up your own blog? I’m not very
    techincal but I can figure things out pretty fast. I’m thinking about setting up my own but I’m not sure where to start.
    Do you have any tips or suggestions? Thanks

  80. Amazing! This blog looks exactly like my old one!
    It’s on a completely different topic but it has pretty much the same layout and design. Excellent
    choice of colors!

  81. You can certainly see your expertise within the work you write.
    The sector hopes for more passionate writers
    like you who are not afraid to say how they believe. Always go after your heart.

  82. “Good site! I really love how it is simple on my eyes and the data are well written. I’m wondering how I might be notified whenever a new post has been made. I have subscribed to your RSS which must do the trick! Have a great day!”

  83. I loved as much as you’ll receive carried out right
    here. The sketch is tasteful, your authored material stylish.
    nonetheless, you command get bought an impatience over that you
    wish be delivering the following. unwell unquestionably come further formerly again since exactly
    the same nearly very often inside case you shield this increase.

  84. I do consider all the concepts you have offered to your post.
    They’re very convincing and will definitely work.
    Still, the posts are too brief for starters. May just you please lengthen them a little from next time?
    Thank you for the post.

  85. You are so cool! I do not think I’ve truly read anything like that before.
    So wonderful to discover another person with a few unique thoughts on this subject matter.
    Seriously.. thank you for starting this up. This website is something
    that is required on the web, someone with some originality!

  86. We stumbled over here by a different web page and thought
    I may as well check things out. I like what I see so now i’m following you.
    Look forward to checking out your web page again.

  87. I know this if off topic but I’m looking into starting my own weblog and was curious what all is needed to get setup?
    I’m assuming having a blog like yours would cost a pretty penny?
    I’m not very internet smart so I’m not 100% certain. Any tips or advice would be greatly appreciated.

    Cheers

  88. I’m very pleased to uncover this site. I wanted to thank you for ones time
    for this fantastic read!! I definitely liked every little bit of it and i also have you book marked to look at new things on your web site.

  89. Good day! This is my first visit to your blog! We are a
    team of volunteers and starting a new initiative in a community in the same niche.
    Your blog provided us beneficial information to work on. You have done a wonderful
    job!

  90. Hey there! I’ve been following your weblog for a long time now
    and finally got the bravery to go ahead and
    give you a shout out from Porter Tx! Just wanted to mention keep up the
    great work!

  91. I am really enjoying the theme/design of your weblog.

    Do you ever run into any browser compatibility issues? A few of
    my blog audience have complained about my site not operating correctly in Explorer
    but looks great in Firefox. Do you have any tips to help fix this problem?

  92. Simply want to say your article is as amazing.
    The clarity in your submit is simply nice and i can assume you are an expert in this subject.
    Fine along with your permission allow me to snatch your RSS feed
    to keep updated with drawing close post. Thanks a million and please keep
    up the rewarding work.

  93. I’d like to thank you for the efforts you have put in writing this
    blog. I’m hoping to view the same high-grade content from
    you in the future as well. In truth, your creative writing abilities has motivated me to
    get my own, personal blog now 😉

  94. Greate pieces. Keep writing such kind of information on your blog.

    Im really impressed by your site.
    Hello there, You’ve done a great job. I’ll definitely
    digg it and personally suggest to my friends. I am confident they’ll be
    benefited from this website.

  95. Good day! I simply would like to give you a huge
    thumbs up for your excellent information you have got right here on this post.
    I will be coming back to your web site for more soon.

BİR CEVAP BIRAK

Please enter your comment!
Please enter your name here