ios-4.2

didRegisterForRemoteNotificationsWithDeviceToken: doesn't invoke on calling registerForRemoteNotificationTypes:?

大兔子大兔子 提交于 2019-12-30 06:07:07
问题 I am working with push notifications in a navBased app. in AppDelegate.m didRegisterForRemoteNotificationsWithDeviceToken: doesn't invoke on calling registerForRemoteNotificationTypes: code looks like this: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [[UIApplication sharedApplication] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)]; [self

App crashes with 4.2 iPhone simulator 'set start-with-shell off'

老子叫甜甜 提交于 2019-12-30 06:00:14
问题 I'm writing application which perfectly works on 4.0/4.1 iPhone simulator, but not 4.2. I'm getting such warning: Detected an attempt to call a symbol in system libraries that is not present on the iPhone: fcntl$UNIX2003 called from function get_socket_nonblocking in image TestApp. If you are encountering this problem running a simulator binary within gdb, make sure you 'set start-with-shell off' first. How to set 'set start-with-shell off' on Xcode? I'm tried to add this line to .gdbinit but

NSFetchedResultsController initWithFetchRequest throws EXE-BAD-ACCESS exception

爷,独闯天下 提交于 2019-12-24 23:52:29
问题 I have an NSFetchedResultsController inside a subclass of UITableViewController inside a UINavigationController . When I run the app, everything works perfectly the first three times I access the view (going to it, then clicking 'Back', then going to it again), but on the fourth (always) it crashes with the following: -[NSEntityDescription subentitiesByName]: message sent to deallocated instance 0x8b09c80 Any help would be much appreciated. Here is my getter for the results controller: -

How to use a image instead of activity indicator?

本小妞迷上赌 提交于 2019-12-24 17:19:15
问题 in my app when i click on refresh button, an activity indicator appears. and when tableView is refreshed then it disappears. i want to use a image instead of that activity indicator in such a way that when i click on refresh that image ll come on the whole screen and when view ll b refreshed it ll disappear. how can i do that? thanx in advance 回答1: Basically what you need to do is add a "cover page" view over your current view. These usually work best if you set the alpha to about 50%.

how to set MaxDate and MinDate to DatePicker returned from webservice on ios

这一生的挚爱 提交于 2019-12-24 08:15:35
问题 I have a an XML response which returns the below data as response Start Day of the Week-Wednesday End Day of the Week-Sunday Start time -16:00 End time -19:00 Now I know how to parse these values ,but I am getting confused on how can I set these values to MaxDate and MinDate of the Date Picker,because the returned response is not same always and may change later,I mean later start day of the week ,end day of the week may change,so how shall I implement it so that it will be efficient..please

Unable to display printer options with AirPrint

梦想与她 提交于 2019-12-23 01:18:10
问题 I want to add AirPrint functionality to my iPad application I have been trying to display printer ontions described in Apple's Drawing and Printing Guide I have toolbar and UIBarButtonItem *printButton . In controller I receive onPrintClick and try to display printer options by such code: UIPrintInteractionController *controller = [UIPrintInteractionController sharedPrintController]; [controller setDelegate:self]; if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { [controller

How to customize the UIToolbar with buttons that contains colored images?

杀马特。学长 韩版系。学妹 提交于 2019-12-22 08:44:28
问题 I have two questions about the UIToolbar: 1: I have read numerous Stackoverflow answers on how to use buttons with custom images (colored) in a UIToolbar. I have tried to put a view (hack) on top of the UIToolbar and put the buttons with the images in it, but failed. Right now I am stuck. How can you accomplish this? 2: Is there a way to have many buttons in "pressed" state simultaneously? The function I want to accomplish is different buttons with different kind kinds of sorting. 回答1: Ok the

Compiling libpq with iOS SDK 4.2

坚强是说给别人听的谎言 提交于 2019-12-21 19:33:06
问题 I'm trying to compile again the libpq for arm and i386 with the iOS SDK 4.2. I did last year for SDK3.x without any problems. Now, when I want to create the fat binary file with two files, I'm getting this error: specifed architecture type (arm) for file (/Users/montx/mylibs_sdk42/libpq.arm) does not match its cputype (7) and cpusubtype (3) (should be cputype (12) and cpusubtype (0)) I'm compiling again because my compiled files doesn't work with the latest iOS4.2 Detected an attempt to call

Compiling libpq with iOS SDK 4.2

我与影子孤独终老i 提交于 2019-12-21 19:33:03
问题 I'm trying to compile again the libpq for arm and i386 with the iOS SDK 4.2. I did last year for SDK3.x without any problems. Now, when I want to create the fat binary file with two files, I'm getting this error: specifed architecture type (arm) for file (/Users/montx/mylibs_sdk42/libpq.arm) does not match its cputype (7) and cpusubtype (3) (should be cputype (12) and cpusubtype (0)) I'm compiling again because my compiled files doesn't work with the latest iOS4.2 Detected an attempt to call

Translucent Status Bars (iPhone/iPad/iPod Touch)

烂漫一生 提交于 2019-12-21 17:04:54
问题 I've been looking around and it seems like the answer is no, but the posts are dated so I was wondering if this has changed. Is it possible to set the status bar to translucent? I'm trying to do a fade-in/fade-out effect on a multitouch tap but the status bar keeps coming up as solid black. Thanks! -- edit -- The code I'm using for the event transition is below. I have set the statusbar to translucent in the -info.plist, but I noticed there's no Black Translucent setting in IB (which is