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

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 solved How to hide Navigation Bar? [closed]

[Solved] Refactoring UITableView delegates for iOS7 and iOS8

self.tableView setDelegate: assigns a weak reference; if you don’t hold your own reference to this object, it will get collected. This is why you’re seeing the crash. The system has collected the memory that was assigned to your delegate, then reassigned the memory to an NSArray. Your table tries to call methods on the delegate … Read more

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

“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 solved can i use to pass a data with ‘navigation controller back button’ in … Read more

[Solved] date not showing in correct manner

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) { NSDate … Read more

[Solved] How to change UIPickerView image

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 add … Read more

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

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]; // Start … Read more

[Solved] Updating UILabel in a loop?

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 once … Read more

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

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 case … Read more

[Solved] Error in IOS App – Expected Identifier

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 previous … Read more

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

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

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

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(); } } solved Convert Objective-C to Swift for these below code [closed]