Posts by Gian • 741 points
44 posts
-
2
votes1
answer237
views -
2
votes2
answers366
viewsQ: Start screen in storyboard
I’m using Xcode for app development. In it I use the storyboard for the canvases. Suppose the structure of canvases is as follows: I have 5 sequential screens, which one leads to the next, until…
-
2
votes1
answer505
viewsA: Publishing App to Apple Store with restricted content
If an app that is published in the App Store requires some login it is necessary that you provide a test account so that during the review period they can assess whether the content and…
-
1
votes1
answer124
viewsQ: Custom components
Is there any way to create custom components/screens with some components already loaded? For example, create a UIViewController customized, with some standard elements in it. But in a way that can…
-
1
votes1
answer31
viewsA: Access button text
To access the title of the button you must first access the UILabel, because the button title is a UILabel. To access do as follows: button.titleLabel!.text…
-
1
votes1
answer316
viewsQ: Remove Core Data from an Xcode project
I started an app development using Core Data in the course of the development of the project I have been observing that the Core Data is not the best for the app. Within this scenario, I would like…
-
1
votes2
answers371
viewsA: Swift Multi Selection Problem Uitableview
Does this problem occur on iOS 7 or iOS 8? Or both? To UITableView in iOS uses a concept of "recycling" the ballots. Every time you use the scroll of table view it recharges the ballots. You can…
-
1
votes1
answer368
viewsQ: Xcode projects with Images.xcassets
In iOS projects created by Xcode, you have a "folder" called Images.xcassets, i.e., an Xcode Assets catalog. In this catalog, I add an image to a UIButton for example, and this image I am required…
-
0
votes1
answer55
viewsA: Property getting nil
I solved this problem using the quick enumeration and using the concept self-reliance, thus discartando the alloc/init array The code was as follows: NSMutableArray * lojas = [[NSMutableArray alloc]…
-
1
votes1
answer55
viewsQ: Property getting nil
I’m facing a problem that a property is getting nil unexplained. NSMutableArray * lojas = [[NSMutableArray alloc] init]; for (int x = 0; x < lojaResultado.count; x++) { NSDictionary *…
-
4
votes1
answer176
viewsQ: Predicting an outcome through probability
I wonder if there’s a way, from a sequence of 10 numbers I can predict the supposed next 10 numbers. These 10 numbers are in a range from 0 to 100. Explaining the situation better: Every day 10…
-
2
votes1
answer103
viewsQ: Motion sensor
How do I identify the rotational motion of the iPhone on its own axis (same rotation as a spinning top)? I was able to identify practically all possible rotations and I couldn’t identify this one,…
-
0
votes1
answer193
viewsQ: Using the camera
I am implementing a screen that I would like to show the image of the camera, but I would just like to show the image, not with features of switching to front camera, cancel, and capture. Is there…
-
0
votes0
answers41
views -
0
votes1
answer86
viewsQ: Core Data issue in iOS 7
I have a problem between iOS 8 and iOS 7. I am using Core Data, I have an entity called Pessoa (NSManagedObject), only when doing a data update happens a EXC_BAD_ACCESS, only that, no other…
-
2
votes1
answer64
viewsQ: Colors in images
I have an image and would like to take the predominant color of this image. For example: I have this image:…
-
2
votes1
answer140
viewsQ: Outlets in Xcode 6 (Universal Application)
I have a problem/doubts. Until today due to some needs I developed only for iPhone or iPad separately, but today I’m starting in the development of universal application, iPhone and iPad. I’m using…
-
1
votes1
answer63
viewsQ: Restrict iOS versions
Is there any way I can restrict iOS versions? Detail: Not the minimum version For example, I developed an app and would like it to run on iOS 7.x. x and iOS 8.1.x. In short, I would like to prevent…
-
0
votes1
answer349
viewsQ: iPhone 5 and iOS 8 - Location permissions
On all devices is OK, the request for permission to use the location appears (independent iOS 7 or iOS 8). Only iPhone 5 does not appear. Code for requesting permission: var versionString =…
-
1
votes1
answer99
viewsQ: Clear Context using Coredata persistence
I wonder if there’s any way to "clean up" my context using the Core Data. Because I have a problem that when I update the application, the same after saving the records in the database, also keeps…
-
0
votes0
answers117
viewsQ: iOS 8 - Manually changing Core Location permissions
I am developing an app for iOS 8 and require permission to CLLocationManager, but if the user does not accept the permission and tries to change in the privacy settings, the settings close at the…
-
4
votes3
answers619
viewsQ: Rotation on certain screens
How do I define only one UIViewController be able to rotate? The scenario is as follows: I own 5 screens, and in all of them I must enable only the mode portrait. But I have a sixth screen, and this…
-
0
votes1
answer58
viewsA: Uiimage Temporaria
The reason is that NSURLConnection automatically caches responses to HTTP requests locally. So while you can’t be saving the image in the app directory, iOS is saving it for me. How you deal with it…
-
0
votes1
answer58
viewsQ: Uiimage Temporaria
I need to download an image, it is displayed, but after displaying it I need to delete it from the device. But always when I open the app again it is already loaded. func getPhoto(pathPhoto: String,…
-
1
votes1
answer180
viewsQ: Parameters for a Container View
The scenario is as follows: I own a UIViewController and within this controller I own one UITableViewController added as a ContainerView. How do I pass parameters between my UIViewController and my…
-
0
votes1
answer242
viewsA: How to open a new view after clicking on an item on a tableView
You can do it two ways. The first: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { [self performSegueWithIdentifier:@"Segue" sender:self]; }…
-
0
votes2
answers300
viewsQ: Read file . xlsm (Excel) from my application
How I read a file .xlsm (excel spreadsheet) from my application? Basically I need to get the data from this spreadsheet. Get the value of each of the cells that this has. Is there anything native…
-
1
votes1
answer72
viewsQ: Predicate with CAST
Accessing the database .sqlite via sql normally I can use the function CAST('coluna' as decimal). Via NSPredicate using CoreData, how do I do the same thing? I have a column like String and I need…
-
2
votes1
answer375
viewsQ: Best data persistence practice
When it comes to persisting the data with the Core Data. What is the best way to persist the data? For example: I own an object Pessoa (subclass of NSObject). And at the time of persistence I…
-
0
votes1
answer100
viewsQ: Uitableview - Data from Disappearing Table
I own a UITableView simple. It is loaded from a .nib and added as a subview, it appears, loads the data, presents the same everything correctly, but from the moment I select a cell, the data simply…
-
2
votes2
answers6761
viewsQ: Mask for Uitextfield
How to apply mask on a UITextField? I found some ways to apply a mask on a UITextField, but it did not seem to me something very correct to do. It can be an example of telephone mask, very simple.…
-
0
votes2
answers412
viewsA: Install IPA using Swift
Upload via this site: http://www.diawi.com/ After the upload click on Send, after that access the link that it will generate through the browser of your iPhone or iPad and follow the steps.…
-
1
votes1
answer305
viewsQ: Query based on relationship, using Nspredicate in Core Data
I have a one-to-many relationship between entities Pai and Filho, where a Pai may have any or N Filho. Using the Core Data, how do I fetch all the Filho, basing my search for a Pai. For example: I…
-
0
votes1
answer88
viewsQ: How to define my Primary Key?
I am developing an application in Swift and started using the Core Data recently. I need to define which attribute of my entity will be mine Primary key. For example: I have an entity that has class…
-
1
votes1
answer44
viewsA: Mapkit - Is there any way to locate friends within this tool?
There is no native resource of MapKit that you can do this. A good practice for this would be to set up a database that collects the location information of other users. From this basis you make…
-
3
votes2
answers272
viewsA: How to perform asynchronous request using JSON?
Sets its class as delegate of <NSURLConnectionDelegate, NSURLConnectionDataDelegate> Making the requisition: -(void)performRequest{ NSString * urlConnection = [[NSString alloc] initWithFormat:…
-
0
votes2
answers93
viewsQ: Adapting iOS 7 Code to iOS 8
Currently I am with the iOS 7 library and I intend to update my library to iOS 8. I would like to know what will be the impact of this update on the projects I already own. I’ll be able to support…
-
2
votes1
answer281
viewsA: How to cache an image from the application and display it later?
You have created the directory in which you are trying to save? Code for creation: -(void)createDirectory:(NSString *)directoryName atFilePath:(NSString *)filePath { NSString *filePathAndDirectory =…
-
1
votes1
answer39
viewsA: iOS Animation does not fix the endpoint when used inside a Uitextfield in the didBegin
Good afternoon Moacir, I have used animations in the same situation as yours. I solved it in the following way: -(void)textFieldDidBeginEditing:(UITextField *)textField{ [UIView…
-
1
votes2
answers344
viewsA: How to change image in Uiimageview equal to Photo Gallery?
There are some options for you to use. Example: https://github.com/gdavis/FGallery-iPhone If you want to implement yourself, I will show you some tutorials:…
-
1
votes1
answer524
viewsA: Eclipse app for iPhone
Converting so automatically unfortunately has no way. But there are some means, one of them is the hybrid applications with HTML, Javascript and CSS (which is what I know a little more). There are…
-
2
votes2
answers208
viewsA: Display different screens dynamically using Uitableview
You can do this by two means. The first you just set a property in the next UIViewController the type of object you want to display the information on. Once this is done, you urge UIViewController…
-
1
votes1
answer57
viewsA: Core Plot - Initial zoom for bar graph
I decided as follows: plotSpace.yRange = [CPTPlotRange plotRangeWithLocation: CPTDecimalFromFloat(-(maxValueY * 0.25)) length: CPTDecimalFromFloat(maxValueAxisY)]; plotSpace.xRange = [CPTPlotRange…
-
1
votes1
answer57
viewsQ: Core Plot - Initial zoom for bar graph
How do I set the initial zoom based on the maximum value of the X axis and the Y axis? Example: Chart 1: Maximum Values: X = 100; Y = 110; Graph 2: Maximum Values: X = 180; Y = 230; I need the…