iphone-sdk-3.0

guardmalloc what are those warnings and how do I get rid of them?

雨燕双飞 提交于 2019-12-08 00:57:31
问题 GuardMalloc: Allocations will be placed on 16 byte boundaries. GuardMalloc: - Some buffer overruns may not be noticed. GuardMalloc: - Applications using vector instructions (e.g., SSE or Altivec) should work. GuardMalloc: GuardMalloc version 18 (gdb) all of the sudden those guardmalloc messages appears in the console window. What's the cause and how do I get rid of it? Mostly because the application behaves weird after those appear. 回答1: I guess you have intentionally enabled GuardMalloc to

How can I save Array of Class Objects in to a Plist(Iphone Development)

僤鯓⒐⒋嵵緔 提交于 2019-12-07 22:44:25
I have a question related to save an array of Class objects to a plist And then get it back. For example i have a class "A" with two Nsstring and some int values. I have an array of Class A objects. How can i save this array in to plist. I can Done store a simple Array(Array of Strings) in to Plist.There is No Error. But When I store this "Array of Objects" It cant be done. Thanks in Advance. Ilanchezhian First convert your NSArray to NSDictionary as given here . Then use NSDictionary 's writeToFile:atomically: to store that as Plist. For this, your class must be conform to NSCoding protocol.

Iphone sequential animation with setAnimationDelay

帅比萌擦擦* 提交于 2019-12-07 20:55:55
问题 I'm trying to chain animation events. The application I'm coding for work has a multiple choice quiz. First you pick your multiple choice answer. The quiz view fades away. Then a label ("correct" or "incorrect") fades in and then fades out. Finally the quiz fades back in again. The events are called and handled by a main viewController. I know I can chain events with the setAnimationDelegate and setAnimationDidStopSelector but I think it'll be easier and more clear to simply use

How to create a full-screen modal status display on iPhone?

最后都变了- 提交于 2019-12-07 18:20:13
问题 I'm trying to create a modal status indicator display for an iPhone app, and would like one similar to this one used in Tweetie: Specifically, this one "shades out" the entire screen, including the toolbar. I don't believe through any normal UIView manipulation, I can extend past the bounds of my window, can I? I believe I've seen a status indicator like this somewhere else on iPhone, possibly when I added an Exchange e-mail account. I've tried subclassing UIAlertView and overriding its

MFMailComposeViewController attachment file size limit

此生再无相见时 提交于 2019-12-07 17:36:26
I'm using MFMailComposeViewController to send a file. Everything works fine with files under 15mb. Anything over, and the file simply doesn't get attached to the MFMailComposeViewController view. It's not that the email server isn't accepting, its that it never gets attached in the first place. Does anyone have any ideas if there's a way to resolve that? I know many email services can't handle attachments over 5 or 10mb, but other services allow you much larger file size. MFMailComposeViewController *mail = [[[MFMailComposeViewController alloc] init] autorelease]; mail.mailComposeDelegate =

iPhone address book - auto-select Phone owner

ⅰ亾dé卋堺 提交于 2019-12-07 15:52:05
问题 In 3.0 they have Auto-Fill for Safari. You go into the settings app to turn it on, and it needs to tie into an entry in the Address Book. I went into the Settings app to set up mine, and I noticed that it already had guessed who I was. Was it doing this using something in the API? If so, how do I access this function? My iPhone syncs up to Address Book on my Mac, and the desktop app knows who I am. Does the iPhone now look at this same property? 回答1: Unfortunately, there is no public API for

How to display iPhone free memory ? and how to free iPhone memory?

血红的双手。 提交于 2019-12-07 15:28:57
问题 How to display iPhone free memory in a UILabel ? and I would like to ask, how to free up memory using iPhone SDK? FYI, I'm using iPhone SDK 3.1.2 with xcode 3.2.1 (Mac OS X Snow Leopard). 回答1: There is no direct access to this information in the SDK, and apps are not allowed to mess around with the OS the way you're suggesting. You're in your own little box; Apple expects you to stay there. When you ask questions that include "the system," you are probably outside of your box. That said,

Alert with 2 buttons

瘦欲@ 提交于 2019-12-07 13:03:06
问题 I'm going to have a link to a website in my app. The user will click on a button that says Website and an Alert will appear with 2 buttons. One of the buttons is just going to be a cancel button and the other button is going to open the website. Could you help me with this? Thanks! 回答1: put this into your header file: @interface YourViewController : UIViewController <UIAlertViewDelegate> put this into the class with your alert: - (void)alertOKCancelAction { // open a alert with an OK and

Bing maps for iPhoneSDK

元气小坏坏 提交于 2019-12-07 11:51:06
问题 Does anyone know how to create simple iPhone app using bing maps? 回答1: The Bing Mobile/Bing Maps team released a new Bing Maps iOS SDK for iPhone and iPad in early May 2011. You can download the SDK here and read about the details in this blog post. 回答2: Personally I would start by reading their API and figure out which services to use 回答3: You may also find that the Bing Maps V7 AJAX control used with PhoneGap gives you a lot more power. Using this approach you get the full power of Bing

Audio will play in 3.2 sim but not in 4.x

£可爱£侵袭症+ 提交于 2019-12-07 11:13:09
问题 This streaming audio app will play in 3.2 simulator, but not in 4.x sim or my 4.1 iPhone. The console logs are as follows: 4.0 Sim This GDB was configured as "x86_64-apple-darwin".Attaching to process 13237. [Switching to process 13237] 2010-11-15 19:54:49.606 Issues[13237:1c07] AddRunningClient starting device on non-zero client count 2010-11-15 19:55:16.220 Issues[13237:6307] AQMEIO_Base::DoStartIO: timeout 2010-11-15 19:55:16.498 Issues[13237:6307] AQMEDevice::StartIO: error -66681 2010-11