Burak KÖSE
Burak KÖSE
İstanbul-I (Avrupa)
21/04/2017 tarihinden beri üye
55 GY Puanı
57K GY Sırası

Kişisel Sayfaları

İlgi Alanları

2 Rozet
0 Sertifika
2 Soru Sordu
2 Cevap Verdi
0 Blog Yazısı
0 Etiket Takibi

Hakkında

İş Tecrubesi

Kullanıcıya ait İş tecrübesi bilgisi bulunmamaktadır.

Eğitim Geçmişi

Abant İzzet Baysal Üniversitesi
| Aralık 2020 - Aralık 2020

Sertifikalar & Başarılar

GY Sertifikaları (0)
Kullanıcının GY sertifikası bulunmamaktadır.
Diğer Sertifikaları (0)
Kullanıcıya ait sertifika bulunmamaktadır.
Test Sonuçları (0)

Kullanıcıya ait test sonucu bulunmamaktadır.

Dil Becerileri

Son Forum Aktiviteleri

4
Tümünü Gör

textfield içine butonla yazı yazmak

Merhaba Arkadaşlar,

Çeşitli yazı butonlarım var. textview'e  bu butonlara bastıkça arka arkaya yazı yazmasını istiyorum ama her butona bastığımda bir önceki yazıyı silip yenisini yazıyor yardımcı olabilir misiniz ?

4VLq-mXo.jpeg
7 yıl 4 ay önce yanıtladın

UiAlertView çakışması hk.

Arkadaşlar Merhaba 

AlertView kullanıyorum iki tane farklı action butonlarında fakat çakışma meydana geliyor 1 ci alertview butonları düzgün çalışmasına rağmen diğer action butonuna bastığımda çıkan alertview butonları 1cinin görevlerini gerçekleştiriyor.kodlar aşağıdaki gibi yardımcı olursanız sevinirim.

-(IBAction)sendMailhedef:(id)sender

{

    UIAlertView * birinci =[[UIAlertView alloc] initWithTitle:@"Birinci Alert View" message:@"Sube Seçimi" delegate:self cancelButtonTitle:@"Vazgeç" otherButtonTitles:@"Bağcılar",@"Beylikdüzü",@"Seyrantepe",@"Maslak" ,nil];

    

    [birinci show];

}

    -(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{

        if (buttonIndex==1)

        {

            {

                

            NSArray *recipients = [NSArray arrayWithObjects:@"ornek@hotmail.com", nil];

            // email Subject

            NSString *subject = @"merhaba hk.";            

            MFMailComposeViewController *Composer = [[MFMailComposeViewController alloc]init];

            

            Composer.mailComposeDelegate = self;

            [Composer setSubject:subject];

            [Composer setMessageBody:body isHTML:NO];

            [Composer setToRecipients:recipients];

            [Composer setCcRecipients:ccRecipients];

            //get the filePath resource

            

            NSString *filePath = [[NSBundle mainBundle]pathForResource:@"logo" ofType:@"jpg"];

            

            //Read the file using NSData

            

            //  NSData *fileData = [NSData dataWithContentsOfFile:filePath];

            

            //   NSString *mimeType = @"image/png";

            

            //Add attachement

            

            //[Composer addAttachmentData:fileData mimeType:mimeType fileName:filePath];

            

            //Present it on the screen

            

            

            [self presentViewController:Composer animated:YES completion:nil];

            }}

        else if (buttonIndex==2)

            

            {

 

    

    NSArray *recipients = [NSArray arrayWithObjects:@"ornek2@hotmail.com.tr", nil];

    // email Subject

    NSString *subject = @"selam hk.";

    //email body

    

    MFMailComposeViewController *Composer = [[MFMailComposeViewController alloc]init];

    

    Composer.mailComposeDelegate = self;

    [Composer setSubject:subject];

    [Composer setMessageBody:body isHTML:NO];

    [Composer setToRecipients:recipients];

  

    //get the filePath resource

    

    NSString *filePath = [[NSBundle mainBundle]pathForResource:@"logo" ofType:@"jpg"];

    

    //Read the file using NSData

    

    //  NSData *fileData = [NSData dataWithContentsOfFile:filePath];

    

    //   NSString *mimeType = @"image/png";

    

    //Add attachement

    

    //[Composer addAttachmentData:fileData mimeType:mimeType fileName:filePath];

    

    //Present it on the screen

    

    

    [self presentViewController:Composer animated:YES completion:nil];

    

    

}

        else if (buttonIndex==3)

        {

            NSArray *recipients = [NSArray arrayWithObjects:@"merhaba@icloud.com", nil];

            

            NSString *subject = @"merhaba hk.";

 

            

            

            MFMailComposeViewController *Composer = [[MFMailComposeViewController alloc]init];

            

            Composer.mailComposeDelegate = self;

            [Composer setSubject:subject];

            [Composer setMessageBody:body isHTML:NO];

            [Composer setToRecipients:recipients];

 

            NSString *filePath = [[NSBundle mainBundle]pathForResource:@"logo" ofType:@"jpg"];

            

            

            [self presentViewController:Composer animated:YES completion:nil];

            

        }

        else if (buttonIndex==4)

        {

            NSArray *recipients = [NSArray arrayWithObjects:@"erhan@hotmail.com" nil];

            

            NSString *subject = @"reyhan hk.";

            

            MFMailComposeViewController *Composer = [[MFMailComposeViewController alloc]init];

            

            Composer.mailComposeDelegate = self;

            [Composer setSubject:subject];

            [Composer setMessageBody:body isHTML:NO];

            [Composer setToRecipients:recipients];

          

            NSString *filePath = [[NSBundle mainBundle]pathForResource:@"logo" ofType:@"jpg"];

            

            

            [self presentViewController:Composer animated:YES completion:nil];

            

        }

    }

 

-(IBAction)sendMaildigeri:(id)sender

{

    UIAlertView * ikinci =[[UIAlertView alloc] initWithTitle:@"Depo" message:@"Sube Seçimi" delegate:self cancelButtonTitle:@"Vazgeç" otherButtonTitles:@"Güneşli",@"Kağıthane",@"Trakya", nil];

       [ikinci show];

}

 

-(void)alertViews:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{

    

    if (buttonIndex==1)

    {

        

        {

            NSArray *recipients = [NSArray arrayWithObjects:@"burak@yahoo.com", nil];

            

            NSString *subject = @"Sipariş hk.";

           

            MFMailComposeViewController *Composer = [[MFMailComposeViewController alloc]init];

            

            Composer.mailComposeDelegate = self;

            [Composer setSubject:subject];

            [Composer setMessageBody:body isHTML:NO];

            [Composer setToRecipients:recipients];

 

            NSString *filePath = [[NSBundle mainBundle]pathForResource:@"logo" ofType:@"jpg"];

            

            

            [self presentViewController:Composer animated:YES completion:nil];

        }}

       

        

            else if (buttonIndex==2)

            {

       

        NSArray *recipients = [NSArray arrayWithObjects:@"e.bozar@yahoo.com", nil];

        

        NSString *subject = @"Sipariş hk.";

        

              

        MFMailComposeViewController *Composer = [[MFMailComposeViewController alloc]init];

        

        Composer.mailComposeDelegate = self;

        [Composer setSubject:subject];

        [Composer setMessageBody:body isHTML:NO];

        [Composer setToRecipients:recipients];

       

        

        

        NSString *filePath = [[NSBundle mainBundle]pathForResource:@"logo" ofType:@"jpg"];

        

        

        [self presentViewController:Composer animated:YES completion:nil];

 

            }

            else if (buttonIndex==3)

            {

                

                NSArray *recipients = [NSArray arrayWithObjects:@"g.atalay@yahoo.com", nil];

                

                NSString *subject = @"Sipariş hk.";

                

             

                

                MFMailComposeViewController *Composer = [[MFMailComposeViewController alloc]init];

                

                Composer.mailComposeDelegate = self;

                [Composer setSubject:subject];

                [Composer setMessageBody:body isHTML:NO];

                [Composer setToRecipients:recipients];

              

                

                

                NSString *filePath = [[NSBundle mainBundle]pathForResource:@"logo" ofType:@"jpg"];

                

                

                [self presentViewController:Composer animated:YES completion:nil];

            }

    

}

 

 

 

4VLq-mXo.jpeg
7 yıl 5 ay önce yanıtladın

textfield içine butonla yazı yazmak

4VLq-mXo.jpeg
13 Mayıs 2017 tarihinde cevaplandı

Çok teşekkürler bu kod işime yaradı sizin cevabınız ile nette yaptığım arama sonucu buldum tekrar teşekkürler.
textView.text = [textView.text stringByAppendingString:@"\n\n"];
 

textfield içine butonla yazı yazmak

4VLq-mXo.jpeg
13 Mayıs 2017 tarihinde cevaplandı

Hızlı dönüş için teşekkür ederim ama bu bende çalışmıyor 

- (IBAction)ilkbuton:(id)sender {

    _yazi.text=@" baklava ";

 }

- (IBAction)ikincibuton:(id)sender {

    _yazi.text=@"fıstıklı";

}

şeklinde yaptığımda ilk baklavaya bastığımda baklava yazmasını sonrasında fıstıklı ya bastığımda arkasına diğerini getirmesini istiyorum şeklinde mümkün mü ?