[Solved] Universal App development [closed]

There is a new responsibility for android, iOS and OSX in the new Delphi XE5. It’s based on a framework called Firemonkey. The advantage is that you have to code only once, disadvantage is that you can only use those parts of the SDK that are the same on every platform. There are also rumors … Read more

[Solved] Identify different iOS devices in coding? [closed]

The way I determine what iOS device I am running on so we can change layout based on the iDevices size such as iPad and iPhone is like. // iPhone 5 (iPhone 4″) #define IS_PHONEPOD5() ([UIScreen mainScreen].bounds.size.height == 568.0f && [UIScreen mainScreen].scale == 2.f && UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) To get iPhone 5 you could also … Read more

[Solved] how to I convert a string with format “YYYY/MM/DD” into NSDate type? [duplicate]

You can convert it to an NSDate using the NSDateFormatter. NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateFormat:@”yyyy/MM/dd”]; NSdate *date = [dateFormatter dateFromString:@”2012/03/17″]; Be aware that allocating an NSDateFormatter is a pretty heavy task so if you are parsing a lot of dates then allocate it once and keep it around 🙂 solved how to … Read more

[Solved] IOS: Add activity indicatior view in web view

I’m guessing your mySpinner ivar isn’t being properly retained or declared. In your .h file, declare it as a property. That is: @property (strong) UIActivityIndicatorView *mySpinner; then, when you create it: self.mySpinner = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray]; and when you reference it in your button click method: [self.mySpinner startAnimating]; solved IOS: Add activity indicatior view in … Read more

[Solved] Unrecognized selector sent to instance for my tap gesture

You don’t know how to make the correct selector for this method. (It would be “didtapContainerViewWithGesture:”, but clearly you don’t know that.) So don’t try. Use #selector syntax and let the compiler form the selector for you! Just say #selector(didtapContainerView). Done. 0 solved Unrecognized selector sent to instance for my tap gesture

[Solved] -[__NSArrayI length]: unrecognized selector sent to instance 0x7f1e9f90

From the NSLog it seems like your array contains another array in it and that inside array has the elements that you want to show in your tableview. So change: cell.phoneLbl.text = [array6 objectAtIndex:indexPath.row]; to: cell.phoneLbl.text = array6[0][indexPath.row]; 4 solved -[__NSArrayI length]: unrecognized selector sent to instance 0x7f1e9f90

[Solved] UIImage adding image as subView [closed]

To overlay one image over another in a single image, make an image graphics context, draw the first image, then draw the second image, and now extract the resulting image which now contains both of them (and close the graphics context). 1 solved UIImage adding image as subView [closed]

[Solved] Is it possible to hide the date and time and ip from Mobile Carrier [closed]

First part, mobile carriers: They will always know which server you are connecting to, because it’s them who establish this connection. You’ll have to build up a proxy server, and tunnel the real destination (encrypted) through this proxy. So the carrier will only see the proxy, not the destination. Similar to TOR. Second part, usage … Read more

[Solved] Can’t use a string in .m

Add a property for your string in viewController.h outside the interface like this viewController.h { NSString *string; } @property (nonatomic, retain) NSString *string; and synthesize it in viewController.m @synthesize string; So that you can access that string in other files where you imported your viewController.h EDIT: create an object for your viewController.h in file2 and … Read more

[Solved] Dynamic key value type

You have to decode data depending on type. That means you have to first decode type and then continue depending on its value. Usually to store such items we would use an enum with associated values: enum Item: Decodable { case onboarding(OnboardingData) case entry(EntryData) init(from decoder: Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) … Read more

[Solved] Two different heights for sectionHeaderView

Your code is wrong try this: – (CGFloat)tableView:(UITableView *)tableView heightForViewForHeaderInSection: (NSIndexPath *)indexPath { if(indexPath.section == 0) // First section { return 300; } else if(indexPath.section == 1) { // Second return 50; } else { // Any other section return 40.0; // Default } } 1 solved Two different heights for sectionHeaderView