ios4

(XCode 4.0.2) Archive build (build for distribution on app-store) armv6 warning

喜你入骨 提交于 2020-01-15 07:04:54
问题 I swear I am close to finally submitting an app with XCode 4.0.2. But i am afraid i've come across a pretty steep obstacle to hurdle now. No matter what I do i always get 1-2 warnings related to the armv6 architecture. I have set both Project & Target build settings to use: Architectures : Standard (armv6 armv7) Base SDK : Latest iOS 4.3 Build active architectures only : checked or unchecked doesnt seem to make a difference) Support platforms for Distribute : iphoneos Valid architectures :

UITableView crashes when the same row is selected twice

被刻印的时光 ゝ 提交于 2020-01-15 06:40:08
问题 When i run the app and select a row it passes some information to EmployeeInfoPage and works fine. When i hit back and then select the same row. It crashes at the line tableController.empInfo = employee;. I get a EXC_BAD_ACCESS error - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ EmployeeInfoTableView *tableController = [[EmployeeInfoTableView alloc] init]; NSDictionary *employee = [[self.orderedSections valueForKey:[[[self.orderedSections allKeys

How to set Time Range in UIDatePickerModeTime

天涯浪子 提交于 2020-01-15 05:06:07
问题 Hello friends I am trying to set the Time Range Of the DatePicker in UIDatePickerModeTime,as we have MaxDate and MinDate,whether its possible to set Mintime and Maxtime selected by user,, Suppose I want the user to select the time between 16:00 to 19:00 only for each day then how can I do it,, Thanks&Regards Ranjit Hello friends I tried the below code to set the start time range and its working fine... NSDate *todaysDate =[NSDate date]; NSDateComponents *comps = [gregorian components

SQLITE3 inserting a null value

孤者浪人 提交于 2020-01-15 03:43:10
问题 sqlite3_bind_int(statement, 1, nil); How can I add a null in my above statement , as I am making this field auto increment. Here's my code : if (sqlite3_open([[self dataFilePath] UTF8String], &database)!= SQLITE_OK) { sqlite3_close(database); NSAssert(0, @"Failed to open database"); } NSLog(@"json count ========== %i",[jsonArray count]); for (int i =0 ; i < [jsonArray count]; i++) // while (i < [jsonArray count]) { dictionary = [jsonArray objectAtIndex:i]; char *errorMsg; sqlite3_stmt

Loading huge Text file in UITextview crashes

耗尽温柔 提交于 2020-01-14 13:59:07
问题 I want to update a huge text file in UITextView. But the device just hangs or crashes some times. The text file size is 4MB. The UITextView is been added from Interface Builder. I am loading the file from document directory. Below is the code for loading the text file:- NSError *err = nil; txtView.text =[NSString stringWithContentsOfFile:documentPath encoding:NSUTF8StringEncoding error:&err]; As I want to edit the file I cannot load it in WebView which is much faster and it works properly. Is

Using NSDate in While loop

橙三吉。 提交于 2020-01-14 10:16:16
问题 I want to get the current date using [NSDate date] in a While Loop. I accomplish this by doing like this: while (interval > 0.0) { NSDate *currentDate = [[NSDate alloc] init]; currentDate = [NSDate date]; interval = (float) [newDate timeIntervalSinceDate: currentDate] / 60; [currentDate release]; } I dont know why is the Memory leaks shows that there is a great amount of memory is leaked. Kindly guide me that what is the right way to accomplish my task. 回答1: The problem is not that you are

Objects Sorting With date ,Time Problem in Array(Iphone Development)

徘徊边缘 提交于 2020-01-14 04:57:05
问题 I have Problem related to array Sorting. I have an NSMutable array say's A.Which has an class object b on its each index. class b contain's multiple field Like int,string and nsdate. I want to sort the A array on the basis of class b time(NSdate) ascendingly. I follow the date sorting question on stackoverflow but that's only for date array. Sort NSArray of date strings or objects Kindly guide me. Thank's in advance 回答1: Here you go just modify some part of code for your requirement -

iphone uitableview or uiscrollview better?

走远了吗. 提交于 2020-01-14 04:25:08
问题 Regarding on negative commenst here I simplify my question in small steps I have a view based application which communicates with a web service and recives xml, parse xml and map its contens an appropriate view component (e.g if thats a date show the question with datepicker, if question has 2 values show it with a segmented control, if more with a pickerview..etc) so its a dynamic questionary with many pages. 1-App Receive XML 2-Parse XML and get the latest un-answered questions (there can

Using CATransform3D to create flip animation

爷,独闯天下 提交于 2020-01-13 13:11:14
问题 I'm trying to recreate UIViewAnimationTransitionFlipFromRight (and left). My reason for doing so, as shown below, is to make changes to AVCaptureVideoPreviewLayer in the middle of the animation, when the layer is obstructed. UIViewAnimationTransitionFlipFromRight won't let me stop the animation half way, make session changes, and continue, so here is my best shot at it. While this works, it's just not the same as UIViewAnimationTransitionFlipFromRight. The layer starts to rotate, but more of

Using CATransform3D to create flip animation

穿精又带淫゛_ 提交于 2020-01-13 13:11:14
问题 I'm trying to recreate UIViewAnimationTransitionFlipFromRight (and left). My reason for doing so, as shown below, is to make changes to AVCaptureVideoPreviewLayer in the middle of the animation, when the layer is obstructed. UIViewAnimationTransitionFlipFromRight won't let me stop the animation half way, make session changes, and continue, so here is my best shot at it. While this works, it's just not the same as UIViewAnimationTransitionFlipFromRight. The layer starts to rotate, but more of