[Solved] objective-c – using a boolean value from one class in another class

Introduction Objective-C is a powerful programming language used to develop applications for Apple’s iOS and Mac OS X operating systems. It is an object-oriented language that allows developers to create complex applications with relative ease. One of the most important aspects of Objective-C is the ability to use a boolean value from one class in … Read more

[Solved] How to save User Name and Password in NSUserDefault?

For Saving Username and Password I will personally suggest to use Keychain as they are more safer than NSUserDefault in terms of security since Keychain stores data in encrypted form while NSUserDefault stores as plain text. If you still want to use NSUserDefault Here’s the way FOR SAVING NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults]; // saving … Read more

[Solved] Store string type array in RealM objective c

You can inherit from RLMObject class and put the NSString into your RLMObject as a property. Then you can make new RLMObject one more time, with a RLMArray of previously made RLMObject now. @interface StringObject: RLMObject @property NSString *stringValue; @end @interface RealmObject: RLMObject @property RLMArray<StringObject> *realmArray @end After this manipulation feel free to use it. … Read more

[Solved] ObjectAtIndex method of an NSMutableArray Object [closed]

Likely it is a memory management issue. Are you abiding by rules set out in the Memory Management Programming Guide? Try: revising the memory management rules, make sure you are not using any objects that you don’t own, make sure you are retaining objects you want to keep (and releasing them appropriately afterwards); running your … Read more

[Solved] How to find out antilog [closed]

You need to use pow method of math.h from C-language. antilog = pow(10, number) ; This will give you antilog of number by base10 Side Note: As you are creating a Scientific Calculator and you would be needing Base for the number. EDIT: double number=74.5; double logOfNumber=log10(number); double antilog = pow(10, logOfNumber) ; NSLog(@”%lf”,antilog); Output: … Read more

[Solved] Voice Effects Ios SDK [closed]

Look into DSP, (Digital signal processing). This won’t come easy as it does get rather complicated (ever heard of a Fourier transform?). Start by trying to make something react to audio first as you will learn a lot about how to do what you want to do. tl;dr: there is no magic way to do … Read more

[Solved] How to Set integer from controller to Subview without calling [closed]

A couple of thoughts: You’re written a method, MysetValue which is a bit redundant. When you synthesized your columNumber property, it writes a setter method for you, setColumNumber, that does this for you. Don’t write your own setter if you don’t need to. If you have a property, columNumber that you’ve defined in your .h, … Read more

[Solved] How can I overlap videos in my iPhone app? [closed]

Use UICollectionView 1) Inefficient way : If you want to play all media simultaneously. Grid View of mediaplayers. – (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath { UICollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:CollectionCell forIndexPath:indexPath]; // get URL Player *mediaPlayer = [[self playerArray]objectAtIndex:indexPath.row]; NSURL* videoURL = [NSURL URLWithString:mediaPlayer.url]; MPMoviePlayerController* mPlayer = [[MPMoviePlayerController alloc] initWithContentURL:videoURL]; [mPlayer prepareToPlay]; [mPlayer play]; //For … Read more

[Solved] Insert few objects from an array in nsmutable dictionary

You are using the SAME TAG “Images” for every number you set. Hence it gets replaced again and again dic=[[NSMutableDictionary alloc]init]; for (m = 0; m < 20; m++) { rnd = arc4random_uniform(FrontsCards.count); [dic setObject:[NSNumber numberWithInt:rnd] forKey:[NSString stringWithFormat:@”Images_%d”,rnd]; } NSLog(@”%@”,[dic description]); 0 solved Insert few objects from an array in nsmutable dictionary

[Solved] Swift 3 custom touch motion to trigger action [closed]

Well you question is divided into 2 parts and I’ll answer them both. 1- What you are looking for is UIGestureRecognizer where it’ll recognize a gesture and do an action accordingly. Here is a link taht will help you out! https://www.raywenderlich.com/76020/using-uigesturerecognizer-with-swift-tutorial 2- Unlocking the phone is impossible without jailbreak. Your gestures are bound to your … Read more

[Solved] Text Editor Example for iPhone [closed]

Use UITextView for text editing. If you need rich text, you have to write something on your own – not currently available. Cocoanetics did start implementing rich text label at https://github.com/Cocoanetics/NSAttributedString-Additions-for-HTML and AFAIK he did want to create rich text editor too (at least I read this on Twitter). solved Text Editor Example for iPhone … Read more