iphone-sdk-3.0

Error 403 while getFollowers : Twitter Iphone MGTwitterEngine

Deadly 提交于 2019-12-19 10:49:28
问题 I am using Twitter-OAuth-iPhone https://github.com/bengottlieb/Twitter-OAuth-iPhone I am calling [twitterObj getFollowersIncludingCurrentStatus:NO] for getting my friend list which was working fine. But from last two days its giving me the 403 error. -- Twitter Request FD751461-39C4-4EAB-A0F7-D1ED262B19EA failed with error: Error Domain=HTTP Code=403 "The operation couldn’t be completed. (HTTP error 403.)" As twitter api wiki 403 is due to crossing the limit of updates and DM but here in

Try to integrate LinkedIn in iPhone application

懵懂的女人 提交于 2019-12-19 10:28:41
问题 I have download the source from https://github.com/ResultsDirect/LinkedIn-iPhone . Demo working fine, and try to use in my application. I have followed all the steps already whatever required as mention here in post ... But I have getting the error "_OBJC_CLASS_$_RDLinkedInEngine", referenced from: "_OBJC_CLASS_$_RDLinkedInAuthorizationController", referenced from: When I comment the lines of RDLinkedInEngine and RDLinkedInAuthorizationController then error are removed - (void)loadView {

MinimumOSVersion problem in iphone sdk 3.0

五迷三道 提交于 2019-12-18 17:55:32
问题 i have installed the latest iphone sdk 3.0 beta 5, and trying to submit the first application build from this sdk,but when i upload to itunes connect, it give me the message "The binary you uploaded was invalid. The value provided for the key MinimumOSVersion is not acceptable." and cannot be uploaded. therefore i edit my info.plist file in the project and set this key to 2.2.1,like <key>MinimumOSVersion</key> <string>2.2.1</string> and upload again but it still return the same message,have

AVAssetWriterInput and readyForMoreMediaData

时光总嘲笑我的痴心妄想 提交于 2019-12-18 16:34:19
问题 Is AVAssetWriterInput's readyForMoreMediaData updated in a background thread? If readyForMoreMediaData is NO, can I block in the main thread and wait until the value changes to YES? I'm using an AVAssetWriterInput by pushing data to it (i.e. without using requestMediaDataWhenReadyOnQueue) and I've set expectsMediaDataInRealTime, and 99.9% of the time I can just call appendSampleBuffer (or appendPixelBuffer) on it as fast as my app can generate frames. This works fine unless you put the device

Getting an NSArray of a single attribute from an NSArray

可紊 提交于 2019-12-18 15:34:37
问题 I am facing a very regular scenario. I have an NSArray which has object of a custom type, say Person. The Person class has the attributes: firstName, lastName and age. How can I get an NSArray containing only one attribute from the NSArray having Person objects? Something like: NSArray *people; NSArray *firstNames = [people getArrayOfAttribute:@"firstName" andType:Person.Class] I have a solution of writing a for loop and fill in the firstNames array but I don't want to do that. 回答1: NSArray

Sending out HTML email with IMG tag from an iPhone App using MFMailComposeViewController class

Deadly 提交于 2019-12-18 12:42:59
问题 I am using MFMailComposeViewController class to send out formatted HTML email from my iPhone app. I need to include an image in the email and I added am IMG tag to my emailbody - (IBAction)shareWithOther { MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init]; picker.mailComposeDelegate = self; [picker setSubject:@"My Message Subject"]; NSString *emailBody = @"<h3>Some and follow by an image</h3><img src=\"SG10002_1.jpg\"/>and then more text."; [picker

Push notifications work for Ad Hoc, but not when downloaded from the Apple store

為{幸葍}努か 提交于 2019-12-18 12:24:01
问题 My app just got approved for the apple store. I downloaded it an installed it on my iPhone - but it looks like push notifications are broken! I was successfully testing push notifications in production using an adHoc provisioning profile. I had no problems. The only thing I did differently when I submitted to apple was using an app store distribution profile. The application never asks me (or anyone else who has downloaded it) if I want to receive push notifications. Consequently, the phone

Can I show/hide a certain cell in an UITableView depending on the state of another cell?

一曲冷凌霜 提交于 2019-12-18 12:00:40
问题 I have a UITableView with style "Grouped" which I use to set some options in my App. I'd like for one of the cells of this UITableView to only show up depending on whether another of this UITableView's cells is activated or not. If it's not, the first cell should show up (preferably with a smooth animation), if it is, the first cell should hide. I tried returning nil in the appropriate -tableView:cellForRowAtIndexPath: to hide the cell, but that doesn't work and instead throws an exception. I

Frameworks are 'red' in Xcode

早过忘川 提交于 2019-12-18 11:41:46
问题 I downloaded a project developed by Apple employees ( who taught course at Stanford on iPhone application development). Strangely , the frameworks are red. http://img.skitch.com/20100730-kcjun96mp2pxnpg7w3x6njw57.jpg I tried to locate coreGraphics.framework and UIKit.framework to add them again but i couldnt find them either. Taimur 回答1: The red text indicates that the actual files are not at the path that the project has for them. Get info on the framework and look under the General tab. The

MP3 playing using AVAudioPlayer not working on device

老子叫甜甜 提交于 2019-12-18 11:09:29
问题 I am testing my app on my 3GS iPhone with iOS 4.2 I am using the following code which plays a sound in my IBAction. It works perfectly in the simulator (both iPad and iPhone) - I hear the sound. NSString *pathToMusicFile1 = [[NSBundle mainBundle] pathForResource:@"alarm" ofType:@"mp3"]; NSError *error; alarmSound = [[AVAudioPlayer alloc]initWithContentsOfURL:[NSURL fileURLWithPath:pathToMusicFile1] error:&error]; NSLog(@"Song1 Loaded"); if (alarmSound == nil) { NSLog(@"Error playing sound");