ios5

XCode png compression issue

安稳与你 提交于 2020-01-16 19:49:59
问题 During testing i found some thing strange in Xcode. I have a png of size 2.2 mb and the png compression is "YES" in the build setting after archive i extract the build and found that Xcode converted the png to 3.8 mb. Then with same test and png compression is "NO" in build settings then the image have same size of 2.2 mb. Is Xcode extend the size of PNG afte compression ?? 回答1: In all of my own apps, I keep PNG compression set to OFF as Apple has traditionally had problems dealing with

Xcode - Show a ViewController when the app becomes active (coming back from the background)

僤鯓⒐⒋嵵緔 提交于 2020-01-16 18:35:29
问题 I want to show a specific ViewController when the app comes foregrounded from the background. I am using this method to call a ViewController. - (void)applicationWillEnterForeground:(UIApplication *)application { [self presentMyViewController]; } But there is a delay when it comes back from the background. Or in other words, you can see the previous view, then you see the ViewController. I don't want to show the previous view at all. How can achieve this? 回答1: Hide the old view before the app

Xcode - Show a ViewController when the app becomes active (coming back from the background)

对着背影说爱祢 提交于 2020-01-16 18:35:11
问题 I want to show a specific ViewController when the app comes foregrounded from the background. I am using this method to call a ViewController. - (void)applicationWillEnterForeground:(UIApplication *)application { [self presentMyViewController]; } But there is a delay when it comes back from the background. Or in other words, you can see the previous view, then you see the ViewController. I don't want to show the previous view at all. How can achieve this? 回答1: Hide the old view before the app

Target iOS Level with Xcode for Backward Compatability

不想你离开。 提交于 2020-01-16 04:09:25
问题 I did a search here already, and haven't found a clear answer to my question, so I thought the time was right to post. I have an iOS application that was developed using Xcode 3.2 and SDK 4.2. When I built the bundle, I targeted iOS 3, so that people running older iPhones (like my wife who has iPhone 3 with iOS 3.x on it) can run the application. The app was also tested on, and runs fine with, the latest 4.x iOS. With the release of iOS 5, I want to make sure my app is compatible. There is

Ad Hoc Builds Crashing on Device Only - ASIHTTPRequest

一笑奈何 提交于 2020-01-15 12:38:05
问题 EDIT This problem is related to ASIHTTPRequest. When I remove the ASIHTTPRequest async block, the app does not crash on my device any more. I can run the ASIHTTPRequest code on my device, loaded from Xcode fine. It's just when I upload the archive from TestFlight and try to run it that it crashes. The device crash log shows: Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x00000058 Crashed Thread: 0 Thread 0 name: Dispatch queue: com.apple.main-thread Thread

WiFi drops in iPod after a while running my application

本小妞迷上赌 提交于 2020-01-15 08:30:12
问题 I have wifi issues in with my application and the iPod I use for development. Other users have reported the same problems with my app. The app keeps an open connection using sockets, and I show the connection status on top. Also the application reconnects when is disconnected. The wifi signal of my iPod drops every 1 minute, and eventually, it drops until: I plug a power-source to the iPod or I exit the application. It's really and issue that is driving me crazy :-P The iPod iOS version is 5

Getting twitter account list in IOS-5 and user it with TWTweetComposeViewController

不羁的心 提交于 2020-01-15 06:33:06
问题 i am using Twitter with IOS - 5 integration. i used tweeting app provide by apple for this.I am using TWTweetComposeViewController for this. But if i have more than 2 twitter accounts. it is getting my first account every time. but i want that list of my different account shown to me and then when i select one of account and then i can use it with TWTweetComposeViewController. i like to show like bellow image From :"username" i have used this code : - (IBAction)sendEasyTweet:(id)sender { //

Addressbook linker error: Undefined symbols for architecture i386

风流意气都作罢 提交于 2020-01-15 03:30:09
问题 When I use __bridge_transfer or __bridge : - (BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person { NSString* nameFirst = (__bridge_transfer NSString *)ABRecordCopyValue(person, kABPersonFirstNameProperty); NSString* nameLast = (__bridge_transfer NSString *)ABRecordCopyValue(person, kABPersonLastNameProperty); _sight.contactName = [NSString stringWithFormat:@"%@ %@", nameFirst, nameLast]; [self

Background during modal view horizontal flip transition

喜夏-厌秋 提交于 2020-01-14 19:18:26
问题 I am using an iOS 5 storyboard-based project. When presenting a modal view controller I have selected to use the horizontal flip transition. During the transition the background is black, which is not particularly aesthetic given the design of my app. How can I change the background colour during the transition? On non-storyboard projects I was able to change the background colour of the MainWindow.xib, but since this file is no longer present in storyboard projects this cannot be done.

Overriding setters with arc and dynamic properties

喜欢而已 提交于 2020-01-14 14:56:09
问题 I need to do some additional stuff in a setter method. But I get an infinite loop when doing so: I've got a core data object @interface Transaction : NSManagedObject @property (nonatomic, retain) NSDate * date; @end @implementation Transaction @dynamic date; -(void)setDate:(NSDate *)date { self.date = date; //additional stuff omitted } So, in that case I get an infinite loop. Okay so I searched on the net and modified my code in the following way and for every version I get compiler errors