ios7

Add blur in UICollectionViewCell

孤街浪徒 提交于 2019-12-24 13:02:07
问题 I'm trying get a snapshot of a UICollectionViewCell, blur it and add as a subview to the UICollectionViewCell. Some weird problems are happening. MyCollectionViewController - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath { UICollectionViewCell<MyCollectionViewCellProtocol> *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"MyCollectionViewCell" forIndexPath:indexPath]; cell.modelVariable = self

iOS: Waiting for API Completion Block and returning the result

房东的猫 提交于 2019-12-24 12:26:08
问题 Using inheritance. I have a child class that calls a method in the parent class that runs calls the server API. -(IBAction)buttonPressed { [self methodInParentClassThatCallsTheAPI:param]; // This is where I would like the call back if (success from the server API) // do something with the UI else if (failure from the server API) // do so something else with the UI } Parent Class: - (void)methodInParentClassThatCallsTheAPI:(NSString *)param { //The method below calls the server API and waits

UIImagePickerController detect when album is selected

岁酱吖の 提交于 2019-12-24 11:32:50
问题 I need to detect when an album is selected (any album). The didFinishPickingMediaWithInfo only get called when an image or movie is selected. Any suggestions? I need to prevent the status bar from showing up caused by the UIImagePickerController when you tap on any albums. (iOS 7 related) 来源: https://stackoverflow.com/questions/18833115/uiimagepickercontroller-detect-when-album-is-selected

How can I add one big image as an overlay in Mapbox?

試著忘記壹切 提交于 2019-12-24 11:31:50
问题 I would like to add a tile source which is basically 1 PNG with a size of 800x800. I created a subclass of RMAbstractWebMapSource implementing the methods below but it doesn't work and I get a log error 'The tile source ... has a different tile side length than the tilesource container'. @implementation CustomTileSource - (NSURL *)URLForTile:(RMTile)tile { return [[NSURL alloc] initWithString:@"THE_URL_OF_MY_PNG"]; } - (NSString *)uniqueTilecacheKey { return @"NLSMap"; } - (NSString *

iOS: Unable to simultaneously satisfy constraints when in segue

我的未来我决定 提交于 2019-12-24 11:23:13
问题 I am trying to make a segue from a tableview into a UIViewController, but I'm getting a curious error. The error occurs even if the target view is completely empty, just added to the storyboard. My thought is some element of sending view is triggering the error, but I am confused why this is only showing when exiting that TableViewController, not when loading it initially. This is the stack trace form the error: Break on objc_exception_throw to catch this in the debugger. The methods in the

Mobile Backend Starter - iOS client (App Engine)

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 10:58:27
问题 anyone got the error below when compiling the "iOS Client" from google "Mobile Backend Starter"? Xcode 5.02, iPhone iOS 7. duplicate symbol _kCloudBackendClientID in: /Users/paolo/Library/Developer/Xcode/DerivedData/CloudBackendIOSClient-gjhkqbarudkpudeeytxgowaihtym/Build/Intermediates/CloudBackendIOSClient.build/Debug-iphoneos/CloudBackendIOSClient.build/Objects-normal/armv7/MessagesTableViewController.o /Users/paolo/Library/Developer/Xcode/DerivedData/CloudBackendIOSClient

iOS7 : UIImageView Takes Forever to Appear

喜夏-厌秋 提交于 2019-12-24 10:54:08
问题 I have a UIView which creates and inserts views using GCD . It's working on iOS7 but the UIImageView s takes forever to show. Here's the sample code that I am using. UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, 320, 120)]; for (int i = 0; i < 200; i++) { UIView *view = [[UIView alloc] initWithFrame:CGRectMake(77 * i, 0, 77, 88)]; [scrollView addSubview:view]; dispatch_queue_t queue = dispatch_queue_create("image", NULL); dispatch_async(queue, ^{ UIImageView

UITableView cell Contents are disappearing and overlapping when scrolled in UITableViewcell?

浪子不回头ぞ 提交于 2019-12-24 10:47:04
问题 I have a UITableView with custom cells,those cells contain some textFields,segmented index and all.Once i entered the data in particular cell textfield and segmented index after that i scrolled the tableview data contents disappears and overlapping.Can anyone tell me how to resolve the issue and how should i code. 回答1: Use IBOutlet in UITableViewCell because if you create segmented control,textfield as subviews after scrolling down they will be added as subviews every time you Scroll. 来源:

UIPage Control custom style NatGeo

江枫思渺然 提交于 2019-12-24 10:26:40
问题 In my app I have UIView that flow through the use of a horizontal scrollView. To scroll the view I used the classimo method [self addChildViewController: [self.storyboard instantiateViewControllerWithIdentifier: @ "name Storyboard ID"]]; Each UIView is followed through the use of UIPageControl classic, but I do not like it and so I wanted to create something like this (see photo) as you can see from the images above application there is a menu with a triangle pointing down, Indicating the

Application crash NSRangeException

时光总嘲笑我的痴心妄想 提交于 2019-12-24 10:06:33
问题 We have created a Phonegap application for iOS with Xcode4.5 and integrated Bing map using HTML. we are using cordova-1.9.0 When we run our application in iOS7 then application crashes with below exception. * Terminating app due to uncaught exception 'NSRangeException', reason: '* -[WebCoreSharedBufferData getBytes:range:]: range {0, 4000} exceeds data length 0' Application cresh while zoom in - zoom out the map. map is loaded by using mapdotnet-8.3 来源: https://stackoverflow.com/questions