back soft

مطالب مرتبط با «objective» در back soft | نویسنده: استخدام کار

Swift class not conforming to Objective C Protocol

امروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...

ادامه مطلب

Converting NSEnum from Userinfo in NSNotification fails in Objective c

امروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...

ادامه مطلب

Editing functionality in ios [objective c]

امروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...

ادامه مطلب

Decrypt cipher text in Objective C

امروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...

ادامه مطلب

How do I design the objective function for solving Camera calibration using Grey Wolf optimiser swarm algorithm?

Vote count:
 -1I have been using GWO algorithm for solving the camera calibration problem to generate inteal and exteal camera parameters. How to design the objective function for camera calibration and optimise it to produce camera parameters. What are the parameters and preparation...

ادامه مطلب

RabbitMQ C++ client for old debian

Vote count: 0 I have an old Debian (Ley), on which I develop an application that should coect to RabbitMQ. I downloaded the official C++ client rabbitmq-c-0.8.0 from https://github.com/alanxz/rabbitmq-c/releases/tag/v0.8.0 , but unfortunately, I can't compile it on my old Debian: wget https://github.com/alanxz/rabbitmq-c/archive/v0.8.0.tar.gz tar zxvf v0.8.0.tar.gz autoreconf -i Result: autoreconf -i /usr/share/aclocal/libmcrypt.m4:17: waing: underquoted definition of AM_PATH_LIBMCRYPT /usr/share/aclocal/libmcrypt.m4:17: run info '(automake)Extending aclocal' /usr/share/aclocal/libmcrypt.m4:17: or see http://sources.redhat.com/automake/automake.html#Extending-aclocal Makefile.am:6: Libtool l...

ادامه مطلب

Objective-C: Set UIWebView's ScrollView

Vote count: 0 I am trying to set the webview's scrollview using the code below but it disabled the scrolling/interaction of the webview. [webView sizeToFit]; webView.scrollView.scrollEnabled = YES; webView.scrollView.contentSize = CGSizeMake(375, rfqWeb.scrollView.contentSize.height + 700); rfqWeb.userInteractionEnabled = YES; asked 58 secs agochano Let's block ads! بخوانید...

ادامه مطلب

searching through a array of string

Vote count: 0 so i have this set of strings which are stored in an array i want to search the array so when the string is found it should say found and when its not found it should say invalid this is what i have so far cout...

ادامه مطلب

Prevent takeRetainedValue or takeUnretainedValue when using an Objective-C Struct

Vote count: 0 I'm using this approach to keep my string constants together. Using the same example from that post: MONExtResult.h struct MONExtResultStruct { __unsafe_unretained NSString * const AppID; __unsafe_unretained NSString * const ErrorCode; __unsafe_unretained NSString * const Progress; }; exte const struct MONExtResultStruct MONExtResult; MONExtResult.m const struct MONExtResultStruct MONExtResult = { .AppID = @"appid", .ErrorCode = @"errorcode", .Progress = @"progress" }; When I try to use it in Swift: let appID: String = MONExtResult.AppID I get the error: Caot convert value of type 'Unmanaged!' to expected argument type 'String' This is because I need to grab the value from the ...

ادامه مطلب

OBJECTIVE-C: How to call/reference "reportScores:withCompletionHandler: " in ViewController.m? (GameCenter reporting scores)

Vote count: 0 New iOS developer here so this is likely an easy question! Here is the code I am using for my Game Center(See below, copied from Apple's Documentation). I have it under my ViewController.m. My question is, how do I "call" or "reference" this in the "-(void)viewDidLoad" in order to report scores to GameCenter? My problem is I have Game Center working and authenticating, but it is not reporting any scores. I have Sandbox tued on and I have 2 different test accounts so I'm just trying to figure out how to put this final piece together. I tried the obvious [self.reportScore] but that didn't work. Sorry I am new to all this so any help would be appreciated as far as how to report a ...

ادامه مطلب

Objective-C dynamic implementation

Vote count: 0 Description + sample + explanation: (You can skip to the question section) I'd like to make an object instance, which can be implemented by different implementations, depend on a condition (the inteet status). Simple declaration @interface LoginController : NSObject /** The currently logged-in User. Nil if not logged-in yet. */ @property (strong, nonatomic) User *currentUser; // Singleton object + (instancetype)shareInstance; /** Abstract methods, will do nothing if call directly. Use inheritance implements (Online/Offline) instead. */ - (User *)loginByEmail:(NSString *)email password:(NSString *)pwd; @end @interface LoginControllerOnline : LoginController // Login will call re...

ادامه مطلب

Crash during deserialision json to protocol buffers in Objective C

Vote count: 0 This is the code I am using to get a json object NSString *requestString = @"http://url/joual/"; NSData *data = [NSData dataWithContentsOfURL:[NSURL URLWithString:requestString]]; NSError* error; NSArray *jsonDataArray = [[NSArray alloc] initWithArray:[NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:&error]]; NSDictionary *dictObject = [jsonDataArray objectAtIndex:1]; //NSLog(@"%@", [dictObject valueForKey:@"deviceA"]); NSData *jsonJobData = [NSJSONSerialization dataWithJSONObject:dictObject options:kNilOptions error:&error]; JoualEntry *aJobEntry = [JoualEntry parseFromData:jsonJobData]; The jsonDataArray after serialization is ( { call...

ادامه مطلب

Share image and text message with Wechat not working in objective c

Vote count: 0 Hi I am trying to share image, URL and description with wechat user using UIActivityController but it fails to share image. I tried with following code: UIActivityViewController *activityView = [[UIActivityViewController alloc] initWithActivityItems:@[@"TestMessage", [UIImage imageNamed:@"pauseImage"], [NSURL URLWithString:@"http://www.google.com"]] applicationActivities:nil]; activityView.excludedActivityTypes = @[UIActivityTypeAssignToContact, UIActivityTypeCopyToPasteboard, UIActivityTypePrint]; [self presentViewController:activityView animated:YES completion:nil]; Getting output as shwon in image Any help or suggestion will be appreciated. Thanks. asked 46 secs agoPavan Mor...

ادامه مطلب

Sprite position not working in Objective C, Xcode

Vote count: 0 It has been a year or so since I've used Objective C and I must have forgot something because this is stumping me. I didn't use a for loop because I wanted a delay, but I logged all these variables, r is a float, j is an integer. r and j were initialized to 0. -(void)fire{ r = j; if (j < 80) { j = j + 1; bullet.position = CGPointMake(2*r, 15); NSLog(@"r is %f", r); NSLog(@"j is %i", j); NSLog(@"position is %f, %f",bullet.position.x, bullet.position.y); NSLog(@"x is, %f", r/8); [self performSelector:@selector(fire) withObject:nil afterDelay:.05]; } } I get 80 readouts in the log and this is one of them, arbitrarily when r is 70: r is 70.000000 j is 71 position is 0.000000, 0.000...

ادامه مطلب

Protocol conformation error Objective C

Vote count: 0 In DataProvider.h @protocol NewDataProviderProtocol - (void)fetchNewData; @end In SomeClass #import DataProvider.h @interface SomeClass :NSObject @end When I try to make SomeClass conform to NewDataProviderProtocol it says, No type or protocol named 'NewDataProviderProtocol' It's weird since I already imported header DataProvider.h in which the protocol is declared. So I forward declare the NewDataProviderProtocol before interface of SomeClass but xcode was Caot find definition for **NewDataProviderProtocol** What's the reason and the workaround for this? asked 1 min agoPrajeet Shrestha Let's block ads! بخوانید...

ادامه مطلب

SQL XML or JSON to return to Objective-C via ASP.NET

Vote count: 0 I have a question about getting Data from a SQL Database via ASP.NET and then passing the data over to objective-c. Currently I am just using an SQL select statement to get data from the database via ASP.NET and ASP.NET retus the data like so: ORC0023 And then in objective-c I am putting the data in a NSDirectory like so: NSDictionary *punchList = [[NSDictionary alloc]initWithDictionary:[NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:&myError]]; Everything is working as expected here. What I am doing now is creating a stored procedure that retus XML and have ASP.NET retu the XML (everything here is completed and working as expected) The XML came out like ...

ادامه مطلب

Speeding up Soundboard for running on iphone (Objective C)

Vote count: 0 Hi guys I've just submitted an assignment for uni work, it was only required for app to work in iOS simulator but i liked the app and wanted it on my phone however its really slow! any suggestions much appreciated. Heres my app delegate.m --------------- #import #import "AppDelegate.h" @interface AppDelegate () @property PAEAudioHost* host; @end @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.host = [PAEAudioHost audioHostWithNumOutputs:2]; //creates a stereo output using audio engine self.filenames = @[@"Sounds/FX/R1blaster1.wav", //sound sample array @"Sounds/FX/R1blaster2.wav", @"...

ادامه مطلب

how to fetch album through facebook display in uicollectionview by objective c

Vote count: -1 FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc] initWithGraphPath:@"/{album-id}/photos" parameters:params HTTPMethod:@"GET"]; [request startWithCompletionHandler:^(FBSDKGraphRequestCoection *coection, id result, NSError *error) { }]; edited 5 mins agoKirit Modi asked 6 mins agoapp s Let's block ads! بخوانید...

ادامه مطلب

@synthesize practice objective-c with user-interface

Vote count: 0 I blocked on an issue since 1 hours about Setter/Getter on objective-c I implement the code below to do some action depending on user choose. In my view controller interface : @property NSString* view_test; In my implementation @synthesize view_test; The user acces to an other view after a click on a button with this method - (IBAction)PPBarButtonClick:(id)sender { [self setView_test:@"test"]; NSLog(@"view_test %@", [self view_test]); // Print test } And after my viewDidLoad method: - (void)viewDidLoad { [super viewDidLoad]; NSLog(@"view_test %@", [self view_test]); // print always null if ([[self view_test] isEqualToString:(@"test")]) { //some action } else { // other action }...

ادامه مطلب

Objective c title Bar

Vote count: -1 I am new to ios. The problem is that when I click the button the title gets double. For example I click the button the title become 2 from 1 then when I click the button the title become 4. and so on. Can anyone know how to do this. asked 1 min agoUzair Let's block ads! بخوانید...

ادامه مطلب