iphone-sdk-3.0

UITableView not displaying parsed data

大憨熊 提交于 2019-12-10 22:24:18
问题 I have a UITableView which is setup in Interface Builder and connected properly to its class in Xcode. I also have a "Importer" Class which downloads and parses an RSS feed and stores the information in an NSMutableArray. However I have verified the parsing is working properly (using breakpoints and NSlog) but no data is showing in the UITable View. Any ideas as to what the problem could be? I'm almost out of them. It's based on the XML performance Apple example. Update 2: OK so after working

iPhone: provisioning profile expiring every 2 months?

99封情书 提交于 2019-12-10 22:15:14
问题 Is it just me or do the provisioning profiles created on the developer portal expire every 2 months? Why is that insanity? Is there any way to create a provisioning profile that will last for the entire period of the annual subscription? I have contacted Apple, but they simply did not answer. Is Apple insane? 回答1: Provisioning Profiles have shorter lifetimes now, yes. I don't think Apple is insane, they probably have a good reason for it. Does it jive with what you want out of life? It

Xcode: How do I wrap a long string around to the next line in the xcode editor

放肆的年华 提交于 2019-12-10 20:37:00
问题 I've got a long string an sql statement, which I want to wrap onto the next line in the xcode editor, how do I wrap it round e.g. [db executeUpdate:@"insert into test (rid, one, two, amount, startdate, recurrance) values (nil, ?, ?, ?, ?, ?)", 回答1: Try: [db executeUpdate:@"insert into test (rid, one, two, amount, values" " startdate, recurrance)(nil, ?, ?, ?, ?, ?)",... 回答2: I had similar issue... call me paranoid.. but i like my sqlstring to look pretty and easy to trace in case something

CAScrollLayer doesn't scroll!

耗尽温柔 提交于 2019-12-10 18:44:45
问题 Maybe it's because it's late. Whatever the reason I can't figure out why I'm having trouble with a simple CSScrollLayer example I'm trying. I add a 50 pixel Eclipse icon to a view based project and in my initialize method (called from initWithNibName:bundle:) I have this: -(void) initialize { CAScrollLayer *scrollLayer = [CAScrollLayer layer]; scrollLayer.backgroundColor = [[UIColor blackColor] CGColor]; CGRect bounds = self.view.bounds; scrollLayer.bounds = CGRectMake(0, 0, bounds.size.width

How to tell a rightCalloutAccessoryView has been touched for MapKit

二次信任 提交于 2019-12-10 18:35:07
问题 I have a MKAnnotationView being allocated with a DetailDisclosure button being displayed on the right side of the annotation. How would I go about knowing when a user clicked on the annotation button? This is what my code looks like right now - UIButton *rightButton = [UIButton buttonWithType:UIButtonTypeDetailDisclosure]; pinView.rightCalloutAccessoryView = rightButton; pinView.animatesDrop = YES; Is there a built in method to detect when a accessory view has been touched? I'm guessing it

Perform synchronized scrolling with two scroll views

白昼怎懂夜的黑 提交于 2019-12-10 16:23:55
问题 I have two scrollers in same view(like 2 vertical scrollers). I want to do something like, when i scroll one scroller the another scroll should also move by the same amount and in same direction as first one. Is there any way i can achieve this??? Any sample will be really appreciated. Thanks in Advance. Vishal. 回答1: I think I've done this... I did it like this: - (void)scrollViewDidScroll:(UIScrollView *)scrollView { if ([scrollView isEqual: theFirstScrollView]) { theSecondScrollView

How to handle payments without using in app purchase in ios apps? [closed]

孤者浪人 提交于 2019-12-10 13:19:04
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 years ago . I just submitted an app to Apple and it was rejected because we were requiring users to register a credit card and then use our service by charging some amount from their cards. I don't want to add in app purchases because they deduct the 30% of the amount paid. I also checked a paypal app in which user enter

UIViewControllers and UIWebView

こ雲淡風輕ζ 提交于 2019-12-10 12:15:29
问题 I am a newbie at iPhone development and have a question, which may end up helping understand this concept in general. Basically, I have UIViewController which loads up a view with a bunch of stuff. Now I want when a user clicks on a button, to load up a different view, which happens to be a webView. Now, I want the weview to load up a different url depending on which button was pressed in the original view. how do i go about doing this? Basically in my head I thought i could load and swap the

iphone - making the CGAffineTransform permanent

半腔热情 提交于 2019-12-10 11:49:23
问题 I am banging my head on the wall here due to this problem: When I create a UIImageView this view has a certain orientation and size. Lets call this state "A". This view responds to taps. It can be dragged around the screen. At some point in the code I apply a CGAffineTransform to the view. Does not matter if the affine is a scale, a rotation, a translation or a combination of all. Does not matter also if the transform is absolute or relative. Not to mention the device can change its

How can I implement a tag cloud on iPhone?

人走茶凉 提交于 2019-12-10 11:40:22
问题 like this one here: Is there an existing class that I can use? 回答1: You can use some of the string drawing methods to find out how large a frame you need for each tag, and then size a bunch of UILabels to fit each word. As you'll likely want your user to interact with the tags, subclass UILabel to handle touches where appropriate. 来源: https://stackoverflow.com/questions/1408221/how-can-i-implement-a-tag-cloud-on-iphone