
Maxim
18.09.2018
21:09:06
это и есть индекс текущей ячейки, судя по документации

Egor
18.09.2018
21:09:28
Тебе надо возвращать твой cell

Maxim
18.09.2018
21:10:09
пустую ячейку

Google

Maxim
18.09.2018
21:10:23
return cell тоже есть

Андрей
18.09.2018
21:11:09
попробуй юзать dequeueReusableCell(withReuseIdentifier: "cell", for: indexPath)

ᴠᴀʟᴇʀɪᴀ
18.09.2018
21:11:32
точнее nil

Lolka.Omsk
18.09.2018
21:11:54

ᴠᴀʟᴇʀɪᴀ
18.09.2018
21:12:22
Если она nil
Есть ли смысл продолжать вообще работу?
Подумай

Андрей
18.09.2018
21:13:01
она может не быть nil, а другого типа

ᴠᴀʟᴇʀɪᴀ
18.09.2018
21:13:27
Мм
Класс

Dmitry
18.09.2018
21:14:58
Молодец)
добился признания посудомойки-эмигранта

ᴠᴀʟᴇʀɪᴀ
18.09.2018
21:16:04
она может не быть nil, а другого типа
However, if you really want to force cast, you can use optional cast operators as? or as! which will produce successful casted value if cast is successful, otherwise will produce nil value and cause crash respectively.
Будет nil

Андрей
18.09.2018
21:22:25

Maxim
18.09.2018
21:23:35
короче я пошел учить UITableView

Google

Dmitry
18.09.2018
21:23:54

Maxim
18.09.2018
21:24:23

ᴠᴀʟᴇʀɪᴀ
18.09.2018
21:24:42

Андрей
18.09.2018
21:30:09
Для его задачи, вероятно, никакой.
Но в таблице могут присутствовать ячейки других типов, тогда если не удалось привести к предыдущему типу, то проверяем - а не второго ли типа, третьего, десятого…. etc
И если вообще ни к какому из типов не удалось привести, то просто вернуть UITableViewCell()
как-то так


Gleb ?
18.09.2018
21:30:46
As you might have heard, for the last couple of years we’ve been quietly rebuilding Telegram for iOS from scratch with Swift – a programming language released by Apple as a faster alternative to Objective C.
The Swift version of Telegram looks exactly as the old one, but is faster, slicker and more battery-friendly than the good old Telegram (which was already great considering it outperformed other messaging apps in speed).
This new Telegram has been available for everyone to download under the name “Telegram X” since January. Thousands of users have been testing it and sharing their feedback with us, so thanks to them the app is now much more polished than a few months ago. While we are still putting some finishing touches on it, it seems that the new Telegram is ready to be shipped to every Telegram user on iOS.
That’s why within the next week or two we are planning to update the default Telegram iOS App with the Swift version. As a result, Telegram will become faster, slicker and more efficient. Since it will rely on an entirely new codebase, some minor bugs and glitches might occur, but we’ll make sure they are quickly – or should I say “swiftly” – fixed.
This change will make Telegram the most popular messaging app written fully in Swift. Some would say it’s a big risk, but I think somebody has to take such risks and be the first to implement new technologies, such as e2e encryption – or Swift.
As you might have heard, for the last couple of years we’ve been quietly rebuilding Telegram for iOS from scratch with Swift – a programming language released by Apple as a faster alternative to Objective C.
The Swift version of Telegram looks exactly as the old one, but is faster, slicker and more battery-friendly than the good old Telegram (which was already great considering it outperformed other messaging apps in speed).
This new Telegram has been available for everyone to download under the name “Telegram X” since January. Thousands of users have been testing it and sharing their feedback with us, so thanks to them the app is now much more polished than a few months ago. While we are still putting some finishing touches on it, it seems that the new Telegram is ready to be shipped to every Telegram user on iOS.
That’s why within the next week or two we are planning to update the default Telegram iOS App with the Swift version. As a result, Telegram will become faster, slicker and more efficient. Since it will rely on an entirely new codebase, some minor bugs and glitches might occur, but we’ll make sure they are quickly – or should I say “swiftly” – fixed.
This change will make Telegram the most popular messaging app written fully in Swift. Some would say it’s a big risk, but I think somebody has to take such risks and be the first to implement new technologies, such as e2e encryption – or Swift.
@Lolka_Omsk «Swift – a programming language released by Apple as a faster alternative to Objective C»


ᴠᴀʟᴇʀɪᴀ
18.09.2018
21:36:07

Андрей
18.09.2018
21:38:03

Lolka.Omsk
18.09.2018
21:38:35

ᴠᴀʟᴇʀɪᴀ
18.09.2018
21:38:47

Gleb ?
18.09.2018
21:39:24

Maxim
18.09.2018
21:50:53

ᴠᴀʟᴇʀɪᴀ
18.09.2018
21:52:20
IndexPath
A list of indexes that together represent the path to a specific location in a tree of nested arrays.
Да

Maxim
18.09.2018
21:52:34
короче все решилось, похоже
cmd+shift+K
чтобы "clean the project"

ᴠᴀʟᴇʀɪᴀ
18.09.2018
21:53:50
код не менял?

Maxim
18.09.2018
21:54:20
нет)

Ilya
18.09.2018
22:44:37

Gleb ?
18.09.2018
22:46:14

Google

Ilya
18.09.2018
22:47:30
Ааа и типо мне еще приснилось, то типо это объяснило почему в последнее время участились случаи когда люди поосле покупки айфона обнаруживали волосы во рту
У меня десятка. Та еще, старая, ебаная, ни кому не нужная уже. И хрен знает даже.
Ммм... думаешь я гей?
Не. Я не гей
Так что если пытались меня завербовать, то это вряд ли.

Ivan
18.09.2018
22:59:07
Единственный телефон, который продавался только 1 год

Ilya
18.09.2018
22:59:47

Anton
18.09.2018
23:00:02

Ivan
18.09.2018
23:00:07

Ilya
18.09.2018
23:00:49

Anton
18.09.2018
23:01:09
3gs?
так то SE тоже меньше вродь по годам выпускали

Ivan
18.09.2018
23:02:12

Ilya
18.09.2018
23:02:33
Ааа, понял. Типо их не продают больше?
Не знал.

Ivan
18.09.2018
23:04:05
Ага, все :))
Телефоны одного года

Ilya
18.09.2018
23:06:25
И часы еще теперь эти осталось донашивать старые без електрокарлиографа

Google

Ilya
18.09.2018
23:06:31
А про мак вообще молчу

Ilya
19.09.2018
03:04:54
Шикарно смотрятся в рулоне туалетной бумаги

Admin
ERROR: S client not available

Lolka.Omsk
19.09.2018
04:06:20

Timur
19.09.2018
05:58:03
Кто обновился до iOS 12?

Davron
19.09.2018
06:02:19
не стал рисковать, но говорят работает good

Timur
19.09.2018
06:06:31

twikoffin
19.09.2018
06:07:00

Ilya
19.09.2018
06:08:42

Artëm
19.09.2018
07:00:20
Ребят всем привет! Никто не знает как в Motion управлять интерактивным транзишном?
вроде есть методы Motion.shared.update() .cancel() .end() но они закомментированы в либе

Олег
19.09.2018
07:14:22
Утро доброе, такая проблема: есть collectionView, в нем в ячейке есть несколько лэйблов, которые могут становиться невидимыми, как сделать, чтоб ячейки нормально ресайзились в зависимости от того, сколько этих лейблов видно?

Константин
19.09.2018
07:20:41

Lolka.Omsk
19.09.2018
07:23:33

а t o n
19.09.2018
08:42:26
ищу человека, который сделает один экран. Скетч есть. База настроена. За подробностями в лс

Максим Ивунин
19.09.2018
08:51:00

а t o n
19.09.2018
08:51:10

Вовка
19.09.2018
08:57:18
Чо происходит
Два раза комп укладывал в ноль

Google

Вовка
19.09.2018
08:57:31
Закрыл все приложения - собрал
16 Гигов карл

Gleb ?
19.09.2018
08:58:04
Чо происходит
Держитесь подальше от окон, висящих предметов, зеркал, высокой мебели, больших бытовых приборов и шкафов, заполненных тяжёлыми предметами

Вовка
19.09.2018
08:58:25

Максим Ивунин
19.09.2018
09:29:06
Кто ставит софт в день релиза - становится бесплатным бета-тестером)

Devios Cr&.
19.09.2018
09:31:00
Люблю новые фичи

Lolka.Omsk
19.09.2018
09:35:02
Инновации как они есть

Devios Cr&.
19.09.2018
09:35:29

Вовка
19.09.2018
09:35:39
А я уже конечный юзер