uikit

iOS 13 Animating View Not Changing Frame

半城伤御伤魂 提交于 2019-12-30 00:36:10
问题 I have an app which is compiled in Xcode 10 on iOS 13 simulator. In one view there is a "tray" view which shows from the bottom when tapped, in iOS 12 it works perfectly, in iOS 13, the tap is calling the method, but the changes to the frame are not saving - I have included outputs from the debugger in comments so you can see what the outputs of the frame values are; - (void) userClickActivityTray: (UITapGestureRecognizer *) gestureRecognizer { if(self.activityTrayShown) { /* (lldb) po self

iOS 7 Core Image QR Code generation too blur

梦想与她 提交于 2019-12-29 14:20:17
问题 here's my code for generating QRCode image + (UIImage *)generateQRCodeWithString:(NSString *)string { NSData *stringData = [string dataUsingEncoding:NSUTF8StringEncoding]; CIFilter *filter = [CIFilter filterWithName:@"CIQRCodeGenerator"]; [filter setValue:stringData forKey:@"inputMessage"]; [filter setValue:@"M" forKey:@"inputCorrectionLevel"]; return [UIImage imageWithCIImage:filter.outputImage]; } The result is too blur. Is it possible to set the size of the generated qr code? 回答1: I was

Implement UIKitDynamics for dragging view off screen

Deadly 提交于 2019-12-29 10:07:08
问题 I'm trying to figure out implement UIKit Dynamics that are similar to those in Jelly's app (specifically swiping down to drag view off-screen). See the animation: http://vimeo.com/83478484 (@1:17) I understand how UIKit Dynamics work, but don't have a great physics background and therefore am having trouble combing the different behaviors to get the desired result! 回答1: This sort of dragging can be accomplished with an UIAttachmentBehavior where you create the attachment behavior upon

Vertical Tab Bars? [closed]

孤街醉人 提交于 2019-12-29 09:13:30
问题 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 4 years ago . I was wondering if anyone knows where I can find documentation or a tutorial on how to make a vertical tab bar for iOS like in 1Password or 2do. I figure that these aren't "real" tab bars, but I'd really like to use that functionality and I'm at a loss on how to accomplish it. Thanks in advance for any help! 回答1

Vertical Tab Bars? [closed]

邮差的信 提交于 2019-12-29 09:13:18
问题 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 4 years ago . I was wondering if anyone knows where I can find documentation or a tutorial on how to make a vertical tab bar for iOS like in 1Password or 2do. I figure that these aren't "real" tab bars, but I'd really like to use that functionality and I'm at a loss on how to accomplish it. Thanks in advance for any help! 回答1

UICollectionView remove section breaks with UICollectionViewFlowLayout

我只是一个虾纸丫 提交于 2019-12-29 06:22:14
问题 I have a dataset that is divided into multiple sections, however, I'd like to display this in a collectionView without breaks between sections. Here's an illustration of what I want to achieve: Instead of: 0-0 0-1 0-2 0-3 1-0 1-1 2-0 3-0 I want: 0-0 0-1 0-2 0-3 1-0 1-1 2-0 3-0 I realize the solution likely lies with a custom UICollectionViewLayout subclass, but I'm not sure how to achieve something like this. Thanks 回答1: You are correct that you need to subclass UICollectionViewLayout. The

Why doesn't Apple allow subclassing of UINavigationController? And what are my alternatives to subclassing?

╄→гoц情女王★ 提交于 2019-12-29 04:18:08
问题 I'm currently building a tabbed iPhone application where each tab's view controller is an instance of UINavigationController , and where every subcontroller of every one of the UINavigationController instances is an instance of UITableViewController . Ideally, I'd like to subclass UINavigationController so that the controller for each tab is a subclass of UINavigationController that (in addition to having all the standard UINavigationController functionality, obviously) serves as the

cellForRowAtIndexPath memory management

做~自己de王妃 提交于 2019-12-28 18:59:29
问题 So, here's the code for my cellForRowAtIndexPath: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"identifier"]; if (cell == nil) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"identifier"]autorelease]; } NSInteger artistIndex = 1; // 1 NSInteger albumIndex = 3; // 3 NSInteger dateIndex = 6; // 6 NSInteger imageIndex =

iOS: How to copy HTML into the cut-paste buffer?

末鹿安然 提交于 2019-12-28 12:08:31
问题 I'm interested in letting my users copy the text they've entered into the cut-and-paste buffer, but I'd like to do that as HTML. Is such a thing even possible? Or do I need to use a MIME format? (I have no idea.) Thanks. 回答1: The following code will get your HTML out of your app and into Apple's Mail app. The documentation doesn't give you a great deal of help on this, so in part it's a matter of looking at what Apple's apps park on the pasteboard and then reverse engineering that. This

Can I mix UIKit and TVMLKit within one app?

≡放荡痞女 提交于 2019-12-28 03:38:05
问题 I'm exploring tvOS and I found that Apple offers nice set of templates written using TVML . I'd like to know if a tvOS app that utilises TVML templates can also use UIKit . Can I mix UIKit and TVMLKit within one app? I found a thread on Apple Developer Forum but it does not fully answer this question and I am going through documentation to find an answer. 回答1: Yes, you can. Displaying TVML templates requires you to use an object that controls the JavaScript Context: TVApplicationController .