server calap
server calap
İstanbul-I (Avrupa)
11/10/2013 tarihinden beri üye
590 GY Puanı
9K GY Sırası

İş Tecrubesi

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

Eğitim Geçmişi

Karadeniz Teknik Ü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

29
Tümünü Gör

Android bdd icin framework

Merhabalar ,

Android de bdd(behavior driven development) icin framework arastiriyorum. Fakat frameworkler arasinda kayboldum. Cucumber-jvm, robolectric ve jbehave hepsi cok guclu araclar ama mesela robolectric bdd destegi biraz daha zayif gibi. JBehave ise android durumu ilgili pek bi ornek bulamadim. Bu uc framework arasindan kullanmami tavsiye edeceginiz (ya da bunlarin disinda) varsa cok memnum olurum

Herkese simdiden tesekkurler.

picture-6584-1390297533.jpg
7 yıl 10 ay önce yanıtladın

Crash oyunda swipe problemi

Merhaba .

Son bir haftadir unity ile bir oyun gelistirmeye ve bunu basit bir oyun yaparak baslamak istedim. Oyunun yapisi objeleri swipe ile yer degistirerek uclu ayni objeye ayni hizaya getirmek. Bildigim candy crash oyunu . Burada sorun objelerinin yerini swipe ile degistirmek icin hangi kod kumesini kullanmaliyim . Script dili olarak C# kullaniyorum.Daha once boyle bir oyun yapan birileri yardimci olursa cok iyi olur.

Herkese kolay gelsin.

picture-6584-1390297533.jpg
9 yıl 8 ay önce yanıtladın

NSjsonserialization sorunu

 

Merhabalar,

Nsjsonserialization kullanarak yaptim ama simulator label icinde herhangi bir data gelmiyor .Consol ekraninda api ciktisi aliyorum ama simulatorde data gelmiyor . nedeni ne olabilir

 

 

 

[code]

- (void)viewDidLoad

{

    [super viewDidLoad];

 

    NSURL *JSONFeed= [NSURL URLWithString:@"http://marsweather.ingenology.com/v1/latest/"];

    NSError * error = nil;

    

    NSData * JSONData =[NSData dataWithContentsOfURL:JSONFeed options:NSDataReadingUncached error:&error];

    

    id jsonObject= [NSJSONSerialization JSONObjectWithData:JSONData options:kNilOptions error:&error];

    

    if (jsonObject !=nil && error==nil) {

        NSLog(@"Success");

        if ([jsonObject isKindOfClass:[NSDictionary class]]) {

            NSDictionary * dics= (NSDictionary*)jsonObject; NSLog(@"disc JSON Dictionary =%@",dics);

            

            for (NSString* dataType in dics) {

                if ([dataType isEqualToString:@"json"]) {

                    NSDictionary * content = [dics objectForKey:dataType];

                    

                    for (NSDictionary* data in content) {

                        NSDictionary * detailContent = [data objectForKey:@"report"];

                        NSString * date= [detailContent objectForKey:@"Terrestrial_date"];

                        //NSNumber * sola =[detailContent objectForKey:@"sol"];

                        //NSNumber * lss =[detailContent objectForKey:@"ls"];

                        //NSNumber * minTemp = [detailContent objectForKey:@"min_temp"];

                        //NSNumber * minTempFah= [detailContent objectForKey:@"min_temp_fahrenheit"];

                        //NSNumber * maxTemp =[detailContent objectForKey:@"max_temp"];

                        //NSNumber * maxTempFah =[detailContent objectForKey:@"max_temp_fahrenheit"];

                        NSString *atmo = [detailContent objectForKey:@"atmo_opacity"];

                        wweather.text=[NSString stringWithFormat:date,atmo];

                        

                    }

                }

            }

            

        }

    

        else if ([jsonObject isKindOfClass:[NSArray class]]){

            NSArray * arrray = (NSArray*)jsonObject;NSLog(@"JSon Array =%@",arrray);

            

        }

    

    }

    

    else if (error !=nil){

        NSLog(@"an error");

    }

    

}

 

[/code]

pushviewcontroller

merhaba,

Uygulamanin root sayfasi bir viewcontroller gecis yapmak istedigim sayfa tableviewcontroller sayfasi ama gecis yapamiyor.TableViewController sinifimi yaparken subclass UITableViewController olarak yaptim. Bunun icin cozum onerisi olan varsa cok sevinirim.

Tesekkurler.

Neden calismadigi hk fikri olan var mi?

[code]

AerItems.h

@interface AerItems : NSObject

@property (nonatomic,strong)NSString * weatherDay;

@property (nonatomic,strong)NSString *weatherText;

@property (nonatomic,strong)NSDate * weatherDate;

@property (nonatomic,strong)NSString *highTemp;

@property (nonatomic,strong)NSString *lowTemp;

-(instancetype) initWithItemDictionary:(NSDictionary*)itemDict;

@end

 

AerItems.m

#import "AerItems.h"

@implementation AerItems

@synthesize weatherDate;

@synthesize weatherText;

@synthesize highTemp;

@synthesize lowTemp;

@synthesize weatherDay;

-(id)initWithItemDictionary:(NSDictionary *)itemDict{

    self= [ super init];

        [self setWeatherDate:[itemDict objectForKey:@"date"]];

    [self setWeatherDay:[itemDict objectForKey:@"day"]];

    [self setWeatherText:[itemDict objectForKey:@"text"]];

    [self setHighTemp:[itemDict objectForKey:@"high"]];

    [self setLowTemp:[itemDict objectForKey:@"low"]];

    

    return self;

}

-(NSString*)description{

    

    NSMutableString *descr = [NSMutableString new];

    

    [descr appendString:[NSString stringWithFormat:@"weatherDate: %@", [self weatherDate]]];

    [descr appendString:[NSString stringWithFormat:@"\rweatherText:%@", [self weatherText]]];

    [descr appendString:[NSString stringWithFormat:@"\rhigh:%@",[self highTemp]]];

    [descr appendString:[NSString stringWithFormat:@"\rlow:%@",[self lowTemp]]];

    [descr appendString:[NSString stringWithFormat:@"weatherDay:%@",[self weatherDay]]];

    

    return [NSString stringWithString:descr];

}

-(void)dealloc{

    

    [self setWeatherText:nil];

    [self setWeatherDate:nil];

    [self setWeatherDay:nil];

    [self setHighTemp:nil];

    [self setLowTemp:nil];

    

}

@end

HavaService.h

@interface HavaService : NSObject

+(void)retrieveWeatherForecastForWoeid:(NSString*)woeid withBlock:(void (^)(NSArray* weatherItems))block:

@end

HavaService.m

#import "HavaService.h"

#import "HavaClient.h"

#import "AerItems.h"

@implementation HavaService

static NSString * const kYQLQuery = @"select * from weather.forecast where woeid='%@'";

+(void)retrieveWeatherForecastForWoeid:(NSString *)woeid withBlock:(void (^)(NSArray *weatherItems))block{

    NSMutableArray * weatherItems= [NSMutableArray new];

    

    NSString * query = [NSString stringWithFormat:kYQLQuery, woeid];

    NSDictionary * paramDict= [NSDictionary dictionaryWithObjectsAndKeys:query,@"q" ,@"format" , @"json", nil];

    

    [[HavaClient sharedClient] GET:@"" parameters:paramDict success:^(NSURLSessionDataTask *task, id responseObject) {

        NSDictionary * query = [responseObject objectForKey:@"query"];

        NSDictionary * result = [query objectForKey:@"result"];

        NSDictionary * channel = [result objectForKey:@"channel"];

        NSDictionary *  item = [channel objectForKey:@"item"];

        NSArray * forecast = [item objectForKey:@"forecast"];

        for (NSDictionary * item in forecast){

            AerItems * weatherItem = [[AerItems alloc] initWithItemDictionary:item];

            [weatherItems addObject:weatherItem];

        }

        if (block){

            block ([NSArray arrayWithArray:weatherItems]);

        }

    } failure:^(NSURLSessionDataTask *task, NSError *error) {

        if (block){

            block([NSArray array]);

        }

    }];

}

@end

havaClient.h

#import "AFHTTPSessionManager.h"

@interface HavaClient : AFHTTPSessionManager

+(HavaClient*)sharedClient;

@end

HavaClient.m

 

#import "HavaClient.h"

@implementation HavaClient

 

static NSString * const kYahooBaseURL = @"http://query.yahooapis.com/v1/public/yql";

 

 

 

+(HavaClient*)sharedClient{

    static HavaClient * _sharedClient = nil;

    static dispatch_once_t onceToken;

    dispatch_once(&onceToken , ^ {

        NSURLSessionConfiguration * config = [NSURLSessionConfiguration defaultSessionConfiguration];

        

        _sharedClient = [[HavaClient alloc] initWithBaseURL:[NSURL URLWithString:kYahooBaseURL] sessionConfiguration:config];

        

        _sharedClient.responseSerializer=[AFJSONResponseSerializer serializer];

       

    });

    

    return _sharedClient;

    

}

@end

AerItemsCell.h

#import <UIKit/UIKit.h>

#import "AerItems.h"

 

 

@interface AerItemsCellTableViewCell : UITableViewCell

 

 

 

 

@property (weak,nonatomic) IBOutlet UILabel *lblDate;

@property (weak,nonatomic) IBOutlet UILabel *lblText;

@property (weak,nonatomic) IBOutlet UILabel *lblDay;

@property (weak,nonatomic) IBOutlet UILabel *lblHighTemp;

@property (weak,nonatomic) IBOutlet UILabel *lblLowTemp;

-(void) setWeatherItem:(AerItems*)WeatherItem;

 

@end

AerItemsCell.m

 

@implementation AerItemsCellTableViewCell

 

@synthesize lblDate;

@synthesize lblDay;

@synthesize lblHighTemp;

@synthesize lblLowTemp;

@synthesize lblText;

 

 

 

 

 

-(void)setWeatherItem:(AerItems *)weatherItem{

    [[self lblDate] setText:[weatherItem weatherDate]];

    [[self lblText] setText:[weatherItem weatherText]];

    [[self lblHighTemp] setText:[weatherItem highTemp]];

    [[self lblLowTemp] setText:[weatherItem lowTemp]];

    [[self lblDay]     setText:[weatherItem weatherDay]];

}

 

@end

 

AerListViewController.h

 

@interface AerListViewController : UIViewController <UITableViewDataSource,UITableViewDelegate>

 

@property (nonatomic,strong) NSString * woeid;

 

@property (weak, nonatomic) IBOutlet UITableView *table;

@property (weak, nonatomic) IBOutlet UILabel *lblTitle;

 

 

 

-(id) initWithWoeid:(NSString*)woeid;

 

@end

AerListViewController.m

#import "AerListViewController.h"

#import "HavaService.h"

#import "AerItemsCellTableViewCell.h"

 

 

@interface AerListViewController ()

 

@property (nonatomic,strong) NSArray * weatherItems;

 

@end

 

@implementation AerListViewController

 

@synthesize table=_table;

@synthesize lblTitle=_lblTitle;

@synthesize woeid=_woeid;

@synthesize weatherItems=_weatherItems;

 

 

 

 

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil

{

    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];

    if (self) {

        // Custom initialization

    }

    return self;

}

 

 

 

 

-(id) initWithWoeid:(NSString *)woeid{

    self =[super init];

    [self setWoeid:woeid];

    

    return self;

    

}

- (void)viewDidLoad

{

    [super viewDidLoad];

    [[self lblTitle] setText:[NSString stringWithFormat:@"Aer for %@ " ,[self woeid]]];

    

    [HavaService retrieveWeatherForecastForWoeid:[self woeid] withBlock:^(NSArray *weatherItems){

        [self setWeatherItems:weatherItems];

        [[self table] reloadData];

        

    }];

    

}

 

#pragma  mark - UITableViewDataSource

 

-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{

    

    return [_weatherItems count];

 

}

 

-(UITableViewCell*)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{

    

    

    static NSString * CellId= @"AerItemsCell";

    AerItemsCellTableViewCell * cell = [tableView dequeueReusableCellWithIdentifier:CellId];

    if (!cell) {

        NSArray *nib= [[NSBundle mainBundle] loadNibNamed:@"AerItemsCellTableViewCell.h" owner:nil options:nil];

        cell = [nib objectAtIndex:0];

        

    }

    

    AerItems * weatherItem =[[self weatherItems] objectAtIndex:[indexPath row]];

    [cell setWeatherItem:weatherItem];

    return cell;

    

}

 

#pragma mark - UITableViewDelegate

 

-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{

    return 64.0;

 

}

 

- (void)didReceiveMemoryWarning

{

    [super didReceiveMemoryWarning];

    // Dispose of any resources that can be recreated.

}

@end

[/code]

picture-6584-1390297533.jpg
9 yıl 10 ay önce yanıtladın

Xcode a Alternatif Derleyici

picture-6584-1390297533.jpg
08 Temmuz 2014 tarihinde cevaplandı

Merhaba

Jetbrains'in appcode 3 isimli bi editoru var , kullanan arkadaslarim epey begenmislerdi deneyebilirsin.

Neden calismadigi hk fikri olan var mi?

picture-6584-1390297533.jpg
04 Haziran 2014 tarihinde cevaplandı

Hocam aslinda gelen hata kodu yok simulator calistiginda sadece bos bi tableview goruyorum.

AfNetwork kullanimini podfile ile yapnmak

picture-6584-1390297533.jpg
16 Mayıs 2014 tarihinde cevaplandı

kendin soruma kendim cevap vereyim . terminal acip bilgisayarda bulundugunuz yeri bulun(pwd). Sonra cd komutu ile projeniniz bulundugu dizine gidin .Proje dizinin icindeyken vim podfile yazin, proje icinde podfile goreceksiniz. daha sonda pod AFNetworking yazin, daha sonra pod install yazip bekleyin . Terminal ekranin afnetworking yuklendigine dair yanilmiyorsam bes satir yazi cikacak. Sonra hazir.  Projede workspace yi acin baslayin kodlamaya

Uygulamayı Appstore yükleme hatası!!

picture-6584-1390297533.jpg
16 Mayıs 2014 tarihinde cevaplandı

Merhaba,

Tam bi cevap olmayacak ama itunes bi kac gun once itunes sisteminde bir gunceleme olacagi konusunda bildirim yapmisti, belki ondan dolayi olabilir. 

Kolay Gelsin .

Php yapısını android yada ios ortamında kullanmak?

picture-6584-1390297533.jpg
08 Şubat 2014 tarihinde cevaplandı

phonegap adobe bir yazılımı şuan için frameworkler ücretsiz ama ilerde ne olacağı bilinmez neticede adobe. Ama phonegap a karşılık cordova diye bir yazılım var tamamı ücretsiz ve performansı gayet iyi .Kullanan arkadaşlardan biliyorum. Cordovayı da bir değerlendirirsin.