Tagged Questions
0
votes
0answers
19 views
rotate mapview in iOS
I am having trouble finding this solution. I basically have a map view on a that is part of a view. Very similar to what the screen looks like if you look at a location in the maps app. The map ...
0
votes
2answers
15 views
ios7 UILabel font styling
I want to create a labels with iOS7 default font and styling.
For instance, I'm trying to create a view similar to the notification center. I did been able to get a snap of the screen using the new ...
1
vote
0answers
15 views
CGContextDrawImage draws large images very blurry
I'm trying to make an object that can draw a portion of a large (say 2048 x 1537) image using CGContextDrawImage(…). It works just fine, except that it is extremely blurry. I'm using a ...
0
votes
1answer
17 views
How to call a method on an object while it is being animated?
I am calling a method on an object on TouchUpInside. The first time the object is tapped, its background color will be animated. If I try to quickly tap the object again while it is fading in, the ...
-1
votes
0answers
13 views
UIWebView can't show all contents for a pptx file
I use the following code to open a pptx file. I find that the UIWebview misses the last two lines in the contents. UIWebview can't show all contents for the ppts file.
Get the pptx file from the ...
0
votes
0answers
19 views
why won't my text display from on ViewController to the next
I am trying to pass the String property I have to set the text of the Label. However, the string won't display. Im going through multiple View Controllers. The Idea is to take the information from a ...
0
votes
1answer
16 views
How to Create App Folder in iOS
Hi,
I'm planning to do an app that saves images to app documents folder but I don't know where to start.
My plan is whenever the method
- (void)imagePickerController:(UIImagePickerController ...
0
votes
0answers
18 views
Setting different cellIdentifiers for each section in a UITableview?
I have implemented the SWRevealController (a slide out menu), I referecned AppCoda.com for som help, here's the link (http://www.appcoda.com/ios-programming-sidebar-navigation-menu/).
I have ...
0
votes
2answers
23 views
Access method in another interface of same class
I'm stuck on this problem, please help me.
I have a ViewController with class name: FLViewController. In the .m file, I declare some other interfaces:
@interface FLViewController (InternalMethods)
- ...
0
votes
1answer
16 views
SpriteKit - Return to a persistent scene in the same state it was left in.
The concept of being able to return to a previous scene from where you left off is briefly mentioned here: ...
0
votes
0answers
19 views
Special characters distorting line spacing
I'm using TTTAttributedLabel
If you look at the screenshots below, you can see that the accent mark is messing with the line spacing. How can I fix this to make it more consistent? It also happens ...
0
votes
2answers
21 views
Flashing background on UITableview
I am trying to make quiz program. I used to UITableview for answers. How can i make to flashing on background when user click the correct answer? Is it possible?
Here is the some part of my project;
...
1
vote
1answer
13 views
How can I slow down a SKSpriteNode that is running SKAction followPath for a slow motion effect using Sprite Kit?
I basically want the action to be running and then in the middle of the action create a slow motion effect and then later bring it out of slow motion. Does anyone have any good feedback of how this ...
-2
votes
2answers
46 views
Can't access NSString from another class — Objective-c
I have a UITableView with some names in it. I have built my app from the MasterViewController template that Apple provides. I'm trying to store the name of the selected cell in a NSString and then ...
0
votes
1answer
22 views
UIButton colour changing
I am making an 'info' button, using Xcode's built in button type, "UIButtonTypeInfoLight".
This is my code:
self.helpButton= [UIButton buttonWithType:UIButtonTypeInfoLight];
[self.helpButton ...
0
votes
0answers
5 views
NSURLSessionConfiguration timeoutIntervalForRequest doesn't seem to work with the background session
The new timeout property of NSURLSessionConfiguration doesn't seem to work when the session is set to work in background (via backgroundSessionConfiguration call).
Anybody know if that's really the ...
5
votes
1answer
41 views
iOS drag on UIView, cloth effect
Since I saw this menu drag concept, I have really been interested to find out how accomplish it.
So I am wondering how I would go about dragging with cloth-effect a UIView?
I know how to drag items, ...
1
vote
1answer
22 views
iOS dynamically moved images won't stay put
I am writing an app for iPhone, which upon loading, moves a few UIImages to specific places on the screen. When the app first comes up, everything is where I want it. But if I show a modal page, as ...
0
votes
1answer
24 views
Add UIPageControl to UIScrollView
I have a UIScrollView containing 5 images. I want to add a UIPageControl at the bottom of my scroll view so that the user can see what page they are on.
Here is my code for the scroll view:
...
0
votes
2answers
32 views
Add Subview to main view with function of subview class
I want to add my custom UIView to my main view.
I want to use the function initWithTitle:description: like:
AchievementView *achievement = [[AchievementView alloc] initWithTitle:@"Test" ...
0
votes
1answer
14 views
Unable to establish a Socket connection through IOS
Im writing an IOS application for my first time. It is supposed to connect to a static IP device, and send certain "known" commands to it. But for some reason Im unable to establish a connection.
...
0
votes
0answers
19 views
how to add rotate photo functionality to MWPhotoBrowser?
Below is my attempt. I added a rightBarButtonItem to the navigation bar. Then connected it with the method below. What am I doing wrong?
When I click the button, the method is called, because I see ...
0
votes
0answers
7 views
AFHTTPRequestOperationManager POST request fails with network connection was lost (-1005)
my server side is google compute engine with DJango services as API
this is the code I'm running in xcode IOS 6.1
static NSString *const BaseURLString = @"http://myUrl/";
...
1
vote
1answer
36 views
Segue won't change screens when clicked
I am trying to create an app with multiple scenes the first two scenes connect and transition fine using a segue, but when i add a third scene and connect it with a segue nothing happens when i click ...
-4
votes
2answers
37 views
Add 5 images to UIScrollView
I have 5 images that I wish to put into a UIScrollView, so that the user can scroll between them.
How do I do this?
0
votes
1answer
30 views
Is there a way when you take a picture on iOS7 to not have it flip horizontally using code?
I am wondering if this is actually possible to do. I know I can flip an UIImageView, but the camera on iOS 7 shows the picture flipped horizontally before you select it to display in a uiimageview. Is ...
0
votes
2answers
32 views
IOS , How to force the Locale to one Language
Now I am currently developing a app. I want set this app to a default Language like Chinese. It means that no matter how the system Locale set,like English or Japanese.It will always show the Chinese. ...
1
vote
1answer
29 views
UIAlertView transform is not working on iOS7
I have an uialerview that I want to transform to the bottom of the screen.The following code seems to work on iOS 6 but not iOS7. I was wondering if there is some way else to accomplish this.
...
0
votes
2answers
38 views
Pass UIimage drawing to another viewController
Im new to the iOS development and searched before posting, but couldn't figure out how to make the image passing work at all in my project. I need to pass the UIimage that the user drew from ...
0
votes
0answers
6 views
In iOS 7 how to auto-show keyboard for UIWebView containing a contenteditable div
I have a UIWebView in which there is nothing but an contenteditable div. I want to auto-show the keyboard when the viewcontroller is loaded.
I have googled a solution using
[webView ...
-1
votes
1answer
51 views
Using blocks in NSOperation main method [on hold]
I'm using blocks inside a NSOperation. The main method of my NSOperation looks like this:
- (void) main {
[self callMethodOfALiraryUsingCompletionBlock:^() {
//this method takes time to ...
0
votes
1answer
40 views
Text no longer displays when compiling app in Xcode 5
I have a dictionary in my application. You select your letter in the list view prior. When you click it, it opens the same ViewController for all the letters, but it determines which letter you have ...
5
votes
1answer
19 views
Adjacent CAShapeLayer Antialiasing Issue
I'm drawing a pie chart using a CAShapeLayer for each slice of the pie. Even when the end angle of one pie slice is equal to the start angle of the adjacent slice, antialiasing is resulting in the ...
0
votes
2answers
29 views
Can I connect xib object to any viewController?
I know it is possible to connect an object in a XiB file (i.e button) and connect it to any viewController. I am also able to go to that viewController and programmatically set properties to that ...
0
votes
3answers
17 views
IOS UITableViewCell De-select a view once selected and returned to page
How can I deselect a cell when returning to a view?
I have an orange down state which is applied to a cell when selected - the cell navigates to a modal view when clicked - when i click back button ...
-1
votes
1answer
10 views
How to create UIScrollView containing images with Navigation Bar at the top
I am creating a help menu for my app. I want to have a UIScrollView containing 5 images that the user can scroll through. I also want to have a navigation bar at the top, or something similar, to ...
1
vote
1answer
23 views
Storing Sprite Kit Level Data
There is a project I am working on in which a set of targets appear onto the screen. The targets should appear a certain amount at the same time, and with a certain delay in between each appearance. ...
0
votes
1answer
16 views
UITableViewController to display a persons information — need assistance with editing
I have a UITableViewController that is being called when the user clicks on a row in the previous ViewController (which shows all contacts for the app).
This view that I'm working on needs to show ...
0
votes
0answers
39 views
How to display alert dialog while connecting to server?
An async request has been sent to the server and here is my connection delegate.
in RKYLoginDelegate.m file, i made an alert to tell user that the member is verifying when receiving data.
...
0
votes
1answer
43 views
A Few Questions About Using Core Data and Multithreading
I am making an app which parses XML returned by links and saves that data using Core Data. The problem is that in order for the UI to remain responsive I must do all my parsing in the background ...
0
votes
0answers
11 views
iOS Microchip Ethernet Discoverer
I can send/receive with socket as this tutorial
Now, i want to use UDP to discover an embedded device’s IP address when plugged into a DCHP enabled network. With a GUI based iOS app broadcasting a ...
0
votes
3answers
30 views
Get current view controller from the app delegate (modal is possible)
I know that to get the current view controller from the app delegate, I can use the navigationController property I have set up for my app. However, it's possible in many places throughout my app that ...
0
votes
1answer
46 views
Transparent UITableViewCell flashing background when animating
I have a UIViewController with a custom background color. On top of it there's a UITableView with UITableViewCells that are semi-transparent (white color with opacity 0.5).
The issue I'm blaming ...
0
votes
0answers
33 views
changing CCNode position does not affect children
I'm trying to move my CCNode which has CCSprite in it and it does not work.
I subbclassed from CCNode and try to move that object
here's how I add sprite to node in my init method:
_sprite = ...
0
votes
1answer
77 views
sort an NSArray of CLLocation objects
I have an array of CLLocation object. I would like to order this array with the distance to the user current location.
I know that I can calculate the distance between the user's location and each ...
9
votes
2answers
12k views
How can I add an #ifdef DEBUG to Xcode?
I have some code in a project which should never be used in the release build, but is useful when testing. I'd like to do something like this:
#ifdef DEBUG
// Run my debugging only code
#endif
...
126
votes
4answers
34k views
How do I avoid capturing self in blocks when implementing an API?
I have a working app and I'm working on converting it to ARC in Xcode 4.2. One of the pre-check warnings involves capturing self strongly in a block leading to a retain cycle. I've made a simple code ...
75
votes
5answers
47k views
UITextField text change event
How can I detect any text changes in a textField? The delegate method shouldChangeCharactersInRange works for something, but it did not fulfill my need exactly. Since until it returns YES, the ...
6
votes
3answers
5k views
Capture groups not working in NSRegularExpression
Why is this code only spitting out the entire regex match instead of the capture group?
Input
@"A long string containing Name:</td><td>A name here</td> amongst other things"
...
14
votes
1answer
5k views
Check what version of the app is being used [duplicate]
Possible Duplicate:
How to display the current project version of my App to the user?
Is there a way to check the version number of my app? Is it supplied somewhere once the app is in the ...