ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

FIREBASE TUTORIAL: UPLOAD AND DOWNLOAD PHOTOS LIKE A SOCIAL NETWORK APP

Автор: David Tran

Загружено: 2017-10-10

Просмотров: 24890

Описание: EPISODE DOWNLOAD: https://ductran.co/p/48

Either you want to store your users’ profile picture, sharing photos in your app or building a messenger, you’ll need to know how to upload and download photos.

In this episode, you’ll learn:
Upload photos to Firebase Storage efficiently
Download photos from a backend (Firebase)
Populate data to UITableView, take photos with UIImagePickerController and more

EPISODE DOWNLOAD: https://ductran.co/p/48

*********
ABOUT CODE MASTERY
*********
Code Mastery is hosted by Duc Tran, founder of Developers Academy.

This is his free-style no notes, no teleprompter presentation and live coding broadcast with you guys everyday.

To join Duc’s free courses, register for free at http://ductran.co/

*********
MEET DUC TRAN
*********

Duc Tran is founder of Developers Academy, one of the world’s leading iOS, Android and Web development trainers.

More than 2,000,000 developers have studied his video trainings; 100,000 developers see his posts each month. Each year, Duc has helped 20,000 plus developers graduate from his online courses or video series.

*********
FREE TRAININGS IN IOS DEVELOPMENT
*********
To subscribe and get free tutorials, courses and weekly content, visit me at: http://ductran.co/
Connect with Duc on facebook:   / ductranfan  
Tweet him:   / ductrongtran  
Get daily inspiration:   / ductran.co  

===========
CODE IN THIS COURSE
===========

class FeedParser: NSObject, XMLParserDelegate
{
// 2
private var rssItems: [RSSItem] = []

private var currentElement = ""
private var currentTitle: String = "" {
didSet {
currentTitle = currentTitle.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines)
}
}
private var currentDescription: String = "" {
didSet {
currentDescription = currentDescription.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines)
}
}

private var currentPubDate: String = "" {
didSet {
currentPubDate = currentPubDate.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines)
}
}

private var parserCompletionHandler: (([RSSItem]) - Void)?

// 3
func parseFeed(url: String, completionHandler: (([RSSItem]) - Void)?) - Void
{
self.parserCompletionHandler = completionHandler

let request = URLRequest(url: URL(string: url)!)
let urlSession = URLSession.shared
let task = urlSession.dataTask(with: request) { (data, response, error) in
guard let data = data else {
if let error = error {
print(error)
}
return
}

// parse xml data
let parser = XMLParser(data: data)
parser.delegate = self
parser.parse()
}

task.resume()
}

// MARK: - XML Parser Delegate

// 4
func parser(_ parser: XMLParser, didStartElement elementName: String, namespaceURI: String?, qualifiedName qName: String?, attributes attributeDict: [String : String] = [:])
{
// we assign the name of the element to currentElement, if the item tag is found, we reset the temporary variables of title, description and pubdate for later use
currentElement = elementName
if currentElement == "item" {
currentTitle = ""
currentDescription = ""
currentPubDate = ""
}
}

// 5 - when the value of an element is found, this method gets called with a string representation of part of the characters of the current element

func parser(_ parser: XMLParser, foundCharacters string: String)
{
switch currentElement {
case "title": currentTitle += string
case "description" : currentDescription += string
case "pubDate": currentPubDate += string
default: break
}
}

// 6 - when we reach the closing tag /item is found, this method gets called
func parser(_ parser: XMLParser, didEndElement elementName: String, namespaceURI: String?, qualifiedName qName: String?)
{
if elementName == "item" {
let rssItem = RSSItem(title: currentTitle, description: currentDescription, pubDate: currentPubDate)
rssItems += [rssItem]
}

Duc Tran, duc Tran iOS, firebase tutorial, firebase swift, firebase tutorial iOS, firebase upload image, firebase upload video, firebase download image, firebase download video, firebase download image from storage, firebase download, storage, file, how to make an app, how to build an app

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
FIREBASE TUTORIAL: UPLOAD AND DOWNLOAD PHOTOS LIKE A SOCIAL NETWORK APP

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

How to Build Instagram Newsfeed - UITableView and UICollectionView Tutorial - How to Make An App

How to Build Instagram Newsfeed - UITableView and UICollectionView Tutorial - How to Make An App

Make a Tip Calculator in iOS with Swift

Make a Tip Calculator in iOS with Swift

Build a Photo Grid with UICollectionView and UINavigationController

Build a Photo Grid with UICollectionView and UINavigationController

ИИ ПУЗЫРЬ ЛОПНУЛ

ИИ ПУЗЫРЬ ЛОПНУЛ

iOS Swift Tutorial: App like Twitter with Firestore Cloud Database

iOS Swift Tutorial: App like Twitter with Firestore Cloud Database

Instagram-like App Ep 1: Creating and Signing Users with Firebase (with Swift 3 and XCode 8)

Instagram-like App Ep 1: Creating and Signing Users with Firebase (with Swift 3 and XCode 8)

Учебник по monday.com для начинающих

Учебник по monday.com для начинающих

Create UICollectionView inside UITableViewCell - like App Store, Instagram and Facebook

Create UICollectionView inside UITableViewCell - like App Store, Instagram and Facebook

How to Build an iOS App with Swift - Stop Watch

How to Build an iOS App with Swift - Stop Watch

Saving User Profiles to the Database & Uploading Files to Storage - Swift & Firebase Part 2

Saving User Profiles to the Database & Uploading Files to Storage - Swift & Firebase Part 2

FACEBOOK NEWSFEED PT 1: Set up UICollectionView Programmatically

FACEBOOK NEWSFEED PT 1: Set up UICollectionView Programmatically

Making a Social Media App 2: Episode 1 (Swift 4, Xcode 9)

Making a Social Media App 2: Episode 1 (Swift 4, Xcode 9)

iOS 13 Swift Tutorial: Build a Complex UI with SwiftUI from Start to Finish

iOS 13 Swift Tutorial: Build a Complex UI with SwiftUI from Start to Finish

PowerShell 7 Tutorials for Beginners : Fundamentals

PowerShell 7 Tutorials for Beginners : Fundamentals

Как удалить следы SUNO.AI (МАСТЕР SUNO)

Как удалить следы SUNO.AI (МАСТЕР SUNO)

Create Stretchy Header Effect for UITableView and UICollectionView - iOS Development Tutorial

Create Stretchy Header Effect for UITableView and UICollectionView - iOS Development Tutorial

VS Code ПОЛНЫЙ курс + настройка (интерфейс, плагины, работа с кодом)

VS Code ПОЛНЫЙ курс + настройка (интерфейс, плагины, работа с кодом)

Мастер GitHub: от новичка до эксперта за 46 минут

Мастер GitHub: от новичка до эксперта за 46 минут

Get User Current Location with Swift | Introduction to Core Location

Get User Current Location with Swift | Introduction to Core Location

Firebase: Media Storage | Swift 4, Xcode 9

Firebase: Media Storage | Swift 4, Xcode 9

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]