[Solved] How to pass string value from one .m file to another .m file in iOS [closed]

if you wants to pass data from ViewControlerOne to ViewControllerTwo try these.. do these in ViewControlerOne.h @property (nonatomic, strong) NSString *str1; do these in ViewControllerTwo.h @property (nonatomic, strong) NSString *str2; Synthesize str2 in ViewControllerTwo.m @interface ViewControllerTwo () @end @implementation ViewControllerTwo @synthesize str2; do these in ViewControlerOne.m – (void)viewDidLoad { [super viewDidLoad]; // Data or string … Read more

[Solved] cannot convert AnyHashable in swift 3

type conversion do like func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable: Any]) { print(“received a notification”) Branch.getInstance().handlePushNotification(launchOptions) } for more information you can get from branch in Git solved cannot convert AnyHashable in swift 3

[Solved] Swift, Pass data from popover controller to previous controller [closed]

You can use custom delegate method to fill the value. class PopupviewController { weak var delegate: filleTextViewDelegate? func calldelegate () { delegate?.fillTextview(filledData) } } protocol filleTextViewDelegate : class { func fillTextview(filledData: String) } class CurrentViewController :filleTextViewDelegate { func fillTextview(filledData: String) { textView.text = filledData } } solved Swift, Pass data from popover controller to previous … Read more

[Solved] how to use two CollectionView on same view controller scroll one by one [closed]

You can add two collection view in a single view controller by dragging it. but you have to validate UIcollection view like func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell { var cell = HomeCollectionViewCell() if(collectionView == self.collName1) { cell = collName.dequeueReusableCellWithReuseIdentifier(“CellIdentifier”, forIndexPath: indexPath) as! HomeCollectionViewCell } else if(collectionView == self.collName2) {} return cell } … Read more

[Solved] UIImageView Recognizer

I would add a gestureRecognizer to each imageView. The function called by the gestureRecognizer would then change the image on the “big picker view”. There is no built-in way to get the image name that the user chose. If you really needed this, then you could sublcass UIImageView and add a fileName property. @IBOutlet var … Read more

[Solved] How to make UI with round image and round text, also add ratting icon on same circle. in iOS application

Import roundImageView.h class in your view class and set background image on your UIButton. Please change button type Custom. After Following these steps try this code . CGRect frame = CGRectMake(0, 0, 200, 200); roundImageView *roudImage = [[roundImageView alloc]init]; UIImage *image1 = [roudImage createMenuRingWithFrame:frame :@”Your Title” labelBgColor:[UIColor colorWithRed:(191/255.f) green:(251/255.f) blue:(158/255.f) alpha:1] ringBgColor:[UIColor colorWithRed:(214/255.f) green:(214/255.f) blue:(214/255.f) … Read more

[Solved] What’s the difference between real device and simulator/emulator? [closed]

Recently in QCon, Gerard Meszaros said that we should run automation tests only on simulators to improve efficiency. This was odd advice, if that is really what Mr. Meszaros said. Running tests on the emulator is fine, but “only” is an excessive recommendation. There is no harm in running automated tests on devices, and you … Read more

[Solved] Bank Account iOS App Structure

The problem you’re facing is that you’re creating a new bank account every time instead of maintaining a single account and adding to it. In your original program you created an array of accounts acc that persisted during the lifetime of the user input. Since you’ve moved from a procedural program to a UI program … Read more