[Solved] How to hide Navigation Bar? [closed]

[ad_1] Try out this to remove the navigation bar. (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; // Override point for customization after application launch. MasterViewController *masterViewController = [[[MasterViewController alloc] initWithNibName:@”MasterViewController” bundle:nil] autorelease]; self.window.rootViewController = masterViewController; [self.window makeKeyAndVisible]; return YES; } 1 [ad_2] solved How to hide Navigation Bar? [closed]

[Solved] can i use to pass a data with ‘navigation controller back button’ in xcode

[ad_1] “koediseps” i have written a demo for passing data for you, download it and check it. if you found any problem , ask me. here is the link for data passing with delegate demo some other useful link simple-delegate-tutorial-for-ios-development passing-data-using-delegates-between-viewcontrollers 0 [ad_2] solved can i use to pass a data with ‘navigation controller back … Read more

[Solved] date not showing in correct manner

[ad_1] Try to change like this: In ViewDidload: firstdate = [[NSCalendar currentCalendar] dateByAddingUnit:NSCalendarUnitDay value:-6 toDate:[NSDate date] options:nil]; // And below method -(void)dateChange { NSArray *labelArray = @[flabel, slabel, tlabel, folabel, fivlabel,sixlabel,sevenlabel]; NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; NSCalendar *calendar = [NSCalendar currentCalendar]; dateFormatter.dateFormat = @”ddMMM”; for (NSInteger i = 0; i < 7; ++i) { … Read more

[Solved] How to change UIPickerView image

[ad_1] i have tried this code [[[self._picker1 subviews] objectAtIndex:3] setAlpha:0.0]; // this view contains the background so you can change it with your new background // object at index 4 is your labels or images so they must be shown [[[self._picker1 subviews] objectAtIndex:5] setAlpha:0.0]; [[[self._picker1 subviews] objectAtIndex:6] setAlpha:0.0];// this is you indicator , you can … Read more

[Solved] Gif animation from 383 .gif’s [closed]

[ad_1] In your code is another semantic error: You start with image picollage000.gif but it should be picollage0001.gif, shouldn’t it? I changed that using the if-clauses and another condition in the for-loop. #import “ViewController.h” #define IMAGE_COUNT 383 @interface ViewController () @end @implementation ViewController – (void)viewDidLoad { [super viewDidLoad]; NSMutableArray *imageArray = [[NSMutableArray alloc] initWithCapacity:0]; // … Read more

[Solved] Updating UILabel in a loop?

[ad_1] You should set a timer to handle the update of your label. Right now the whole loop is happening in a fraction of a second. NSTimer * aTimer = [NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(updateTimerLabel) userInfo:nil repeats:YES]; -(void)updateTimerLabel { static int i = 0; [lbl setText:[NSString stringWithFormat:@”%d”, i++]; } This way your label should get updated … Read more

[Solved] unrecognized selector sent to instance in Array [duplicate]

[ad_1] Your problem is that the compiler thinks you’ve declared “m_ArrContactsOrgEntity” as something other than a NSMutableArray. Otherwise, you wouldn’t be seeing that “unrecognized selector” error. Another hint of advice for you, best practice in Objective-C is that variables should always start with lower case letters. Change “ObjIstructContacts“, “Qnarray” and “Qnstream” to start with lower … Read more

[Solved] Error in IOS App – Expected Identifier

[ad_1] The line before your error should have – (void)viewDidLoad and you should only call [super viewDidLoad] once. Move anything in your other viewDidLoad to this new method and delete your other viewDidLoad. For example: – (void)viewDidLoad { **This is where the error Expected identifier or “(” occurs** [super viewDidLoad]; [viewWeb setDelegate:self]; // Moved from … Read more

[Solved] Get substring from string variable and save to NSMutableArray [closed]

[ad_1] NSString *str = @”M||100|??|L||150|??|S||50″; NSString *stringWithoutBars = [str stringByReplacingOccurrencesOfString:@”||” withString:@” “]; NSMutableArray *array = [[NSMutableArray alloc]initWithArray:[stringWithoutBars componentsSeparatedByString:@”|??|”]]; [ad_2] solved Get substring from string variable and save to NSMutableArray [closed]

[Solved] Convert Objective-C to Swift for these below code [closed]

[ad_1] Try this typealias ActionBlock = () -> Void class UIBlackButton: UIButton { var actionBlock: ActionBlock = {} func handleControlEvent(event: UIControlEvents, action: @escaping ActionBlock) { actionBlock = action self.addTarget(self, action: #selector(callActionBlock), for: event) } @objc func callActionBlock(sender: Any) { actionBlock(); } } [ad_2] solved Convert Objective-C to Swift for these below code [closed]