Posts

Showing posts from September, 2019

Hide one segment in SegmentControl iOS . swift

Solution: We had two options with that to achieve.First one is 1.Set the width to 0.Disable the segment to that. Objective C: [seg setWidth:0.1 forSegmentAtIndex:1]; [seg setEnabled:NO forSegmentAtIndex:1]; OR  [self.seg removeSegmentAtIndex:0 animated:NO]; Swift:  seg.removeSegment(at: 0, animated: false) 2. Remove the index from the segment Control

How to create target with same app and different Name iOS swift || create target in swift

Solution: 1.First select the the app it will show you all the targets 2. In that target select the app you want to duplicate 3.right click on that it will show you 2 options.delete and duplicate. 4.Select duplicate it will show you the target with same name copy.It will also creates different plist for the duplicate app

How to get a key value from info.plist iOS swift

Solution:   func AppkeyPath() -> ( NSString ) {         return Bundle . main . object (forInfoDictionaryKey: "keyName" ) as ! NSString     } Add the above function to your utils and add the " keyName " in your info.plist