Skip to content

Instantly share code, notes, and snippets.

View bulentsiyah's full-sized avatar

Bulent Siyah bulentsiyah

View GitHub Profile
@IBOutlet weak var imageSelected: UIImageView!
var imagePicker = UIImagePickerController()
var baseImage: UIImage!
// didload
imagePicker.delegate = self
NotificationCenter.default.addObserver(self, selector: #selector(BildirTableViewController.resimGoster), name: NSNotification.Name(rawValue: "resimGoster"), object: nil)
//
@objc func resimGoster() {
@bulentsiyah
bulentsiyah / MainActivity.java
Last active May 17, 2018 08:30
Dosyayı Private olarak kaydetme -- Servis gizlice kaydediyor, MainActivity de daha önce kaydedilmişleri sıralıyoruz. -- http://www.bulentsiyah.com/dosyayi-gizli-baska-uyg-tarafindan-erisilemeyek-klasore-olarak-kaydetme-android/
try{
File directory = getFilesDir();
File[] files = directory.listFiles();
Log.d("Files", "Size: "+ files.length);
for (int i = 0; i < files.length; i++)
{
Log.d("Files", "FileName:" + files[i].getName());
}
}catch (Exception exp){
exp.toString();
//
// ViewController.swift
// Timers
//
// Created by Bülent Siyah on 17.12.2017.
// Copyright © 2017 Bülent Siyah. All rights reserved.
//
import UIKit
//
// ViewController.swift
// GestureRecognizer
//
// Created by Bülent Siyah on 17.12.2017.
// Copyright © 2017 Bülent Siyah. All rights reserved.
//
import UIKit
@bulentsiyah
bulentsiyah / ViewController.swift
Last active December 16, 2017 20:21
ImageView Resim Kaynağını Koddan Değiştirme | Swift 4 --- http://www.bulentsiyah.com/imageview-resim-kaynagini-koddan-degistirme-swift-4/
//
// ViewController.swift
// Images
//
// Created by Bülent Siyah on 16.12.2017.
// Copyright © 2017 Bülent Siyah. All rights reserved.
//
import UIKit
@bulentsiyah
bulentsiyah / ViewController.swift
Last active December 16, 2017 20:14
Uyarı Kutucuğu Gösterme (Alert Dialog) | Swift 4 --- http://www.bulentsiyah.com/uyari-kutucugu-gosterme-alert-dialog-swift-4/
//
// ViewController.swift
// AlertProject
//
// Created by Bülent Siyah on 16.12.2017.
// Copyright © 2017 Bülent Siyah. All rights reserved.
//
import UIKit
@bulentsiyah
bulentsiyah / SecondViewController.swift
Last active December 12, 2017 21:33
Ekran Ekleme, Ekranlar Arası Geçiş ve Ekranlar Arası Bilgi Aktarımı | Swift 4 -- http://www.bulentsiyah.com/ekran-ekleme-ekranlar-arasi-gecis-ve-ekranlar-arasi-bilgi-aktarimi-swift-4/
//
// SecondViewController.swift
// Segues
//
// Created by Bülent Siyah on 12.12.2017.
// Copyright © 2017 Bülent Siyah. All rights reserved.
//
import UIKit
@bulentsiyah
bulentsiyah / ViewController.swift
Last active December 11, 2017 20:26
UserDefaults Veri Kaydetme, Veriyi Silme Örneği | Swift 4 --- http://www.bulentsiyah.com/userdefaults-veri-kaydetme-veriyi-silme-ornegi-swift-4/
//
// ViewController.swift
// BirthdayNote
//
// Created by Bülent Siyah on 11.12.2017.
// Copyright © 2017 Bülent Siyah. All rights reserved.
//
import UIKit
@bulentsiyah
bulentsiyah / ViewController.swift
Last active December 11, 2017 19:36
Kod Tarafında Dinamik Olarak Arayüz Elemanı Oluşturma | Swift 4 --- http://www.bulentsiyah.com/kod-tarafinda-dinamik-olarak-arayuz-elemani-olusturma-swift-4/
//
// ViewController.swift
// ObjectWithCode
//
// Created by Bülent Siyah on 7.12.2017.
// Copyright © 2017 Bülent Siyah. All rights reserved.
//
import UIKit
@bulentsiyah
bulentsiyah / ViewController.swift
Last active December 11, 2017 19:31
Optionals ve Fonksiyon Kullanma Örneği | Dört işlem yapma | Swift 4 --- http://www.bulentsiyah.com/optionals-ve-fonksiyon-kullanma-ornegi-dort-islem-yapma-swift-4/
//
// ViewController.swift
// Calculator
//
// Created by Bülent Siyah on 3.12.2017.
// Copyright © 2017 Bülent Siyah. All rights reserved.
//
import UIKit