Search results for

column

2,050 results found

Post

Replies

Boosts

Views

Activity

Reply to Applying WarpGeometry on SKEffect nodes inverts the child Sprite
func getDefaultWarp()->SKWarpGeometryGrid{ let warpGeometryGridNoWarp = SKWarpGeometryGrid(columns: 4, rows: 4) return warpGeometryGridNoWarp } func getNoWarp(_ time : TimeInterval = 0.1)->SKAction?{ return SKAction.warp(to: getDefaultWarp(),duration: time) } func getYWarpGrid()->SKWarpGeometryGrid { let sourcePositions: [vector_float2] = [vector_float2(0.0, 0.0),vector_float2(0.25, 0.0),vector_float2(0.5, 0.0),vector_float2(0.75, 0.0),vector_float2(1.0, 0.0), vector_float2(0.0, 0.25),vector_float2(0.25, 0.25),vector_float2(0.5, 0.25),vector_float2(0.75, 0.25),vector_float2(1.0, 0.25),vector_float2(0.0, 0.5),vector_float2(0.25, 0.5),vector_float2(0.5, 0.5),vector_float2(0.75, 0.5),vector_float2(1.0, 0.5),vector_float2(0.0, 0.75),vector_float2(0.25, 0.75),vector_float2(0.5, 0.75),vector_float2(0.75, 0.75),vector_float2(1.0, 0.75),vector_float2(0.0, 1.0),vector_float2(0.25, 1.0),vector_float2(0.5, 1.0),vector_float2(0.75, 1.0),vector_float2(1.0, 1.0),] let destinationPositions: [vector_float2]
Topic: Graphics & Games SubTopic: SpriteKit Tags:
Jul ’17
Moderators: How to know I have reply on thread?
Hi,This forum is great, but it lacks one feature - there is no way for the person to know if the reply to the thread was posted by simply looking at the forum. (S)he has to open the thread to check it.Would it be possible to implement one more column which indicates the number of messages in a thread?I'm sure people here will win from this addition.TIA!
2
0
738
Jul ’17
How to create a CKReference via CK Web Services?
I've using CK Web services very successfully, but I am stumpted about how to cerate a CKReference.I've looked at the docs here re Reference Dictionaries, but can't make such a dictionary work.My php generates the following operations dictionary:{operations:[{operationType: create,record: { recordType: Works, fields: { type:{value:Painting}, title: {value:test}, date: {value:10/29/1965}, height: {value:21}, length: {value:21}, width: {value:21}, runningTime: {value:}, materials: {value:test}, description:{value:test}, saleStatus: {value:yes}, tos:{value:yes}, artist: {value:Peter Wiley}, artistRecordName:{value:286CB3BF-69CC-4DD3-9233-CC80E5FA95D4}, artistRecordRef: { recordName: {value:286CB3BF-69CC-4DD3-9233-CC80E5FA95D4}, zoneID:{zoneName: {value:_defaultZone}}, action: {value:NONE} }, subject:{value:}, metaType:{value:Fine Art}, userRecordName:{value:30C54AD8-3701-428C-99B7-0393DD2DAB45}, userRole:{value:Artist}, status:{value:P} }} }]}This request returns the error: BAD_REQUEST [1]=> string(62) BadRequ
1
0
523
Jul ’17
Reply to ARKit - Get User's Position
You are correct.It gives you the camera transform with the last column having (x,y,z), but I believe this is from the initial position at z, so you need to calculate the altitude.Also, you absolutely must have a scene present to receive any relevant information, but perhaps this is obvious to most people. We aren't using scenekit, and instead using our own rendering engine, so we had to create a fake scene to get this transform.
Topic: Spatial Computing SubTopic: ARKit Tags:
Jul ’17
How to display Data in 2 columns in Table dynamically
Hi I want to display below Data in table Dynamically. No of records can vary.Title DescTitle DescTitle Desc{ error = 0; message = Ok; result = ( { id = 81; desc = <p>Traveler can select any date of travel before 60 days . He can pay remaining payment as per the payment plan mentioned above. </p> n; title = Payment Policy; }, { id = 76; desc = <p> </p> n n<p>6000</p> n; title = Advance; }, { id = 68; desc = <p>25% of Tour Cost (including booking amount)</p> n; title = On confirmation of Price quote; }, { id = 79; desc = <p>70% of Tour Cost</p> n; title = “30 Days Before Departure; }, { id = 77; desc = <p>Total Cost</p> n; title = 10 Days before Departure; } ); }Thanks
3
0
2.6k
Jul ’17
Reply to How to display Data in 2 columns in Table dynamically
Hi I am creating table like this . How i can give height dynamicaaly according to the content. Secondly i am displaying Data like this . Can i create Borders and separate columns with border.self.tableView.frame = CGRect(x: 10, y: 1500, width: 200, height: 500) self.tableView.dataSource = self self.tableView.delegate = self self.tableView.register(UITableViewCell.self, forCellReuseIdentifier: cell) self.view.addSubview(self.tableViewfunc tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = UITableViewCell(style: UITableViewCellStyle.default, reuseIdentifier: td) let dict = array1.object(at: indexPath.row) as! NSDictionary let firstValue = dict.value(forKey: title) as! String let secondValue = dict.value(forKey: desc) as! String cell.textLabel?.text = firstValue cell.detailTextLabel?.text = secondValue return cell }Thanks
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’17
Unsatisfiable constraints for UITableView header - UIView-Encapsulated-Layout-Width width == 0
I have a UITableView section header with a bunch of labels in it where some of those labels have a fixed width in order to look like table columns (same with is used in corresponding table view cells).I'm gettting the following auto layout error when the table view data is reloaded:2017-08-14 13:14:25.765634+0600 ONSITE[61409:29214827] [LayoutConstraints] Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it.( <NSLayoutConstraint:0x608000490db0 UILabel:0x7fcfd2d9fda0'STATUS / ID'.width == 100 (active)>, <NSLayoutConstraint:0x6080004906d0 UILabel:0x7fcfd2da02c0'TRADE'.width == 100 (active)>, <NSLayoutConstraint:0x608000490630 UIImageView:0x7fcfd2da0550.width == 48 (active)>, <NSLayoutConstraint:0x608000490950 H:|-(30)-[UILabel:0x7fcfd2d9fda0'ST
Topic: UI Frameworks SubTopic: UIKit Tags:
2
0
3.1k
Aug ’17
Reply to Code Coverage Not Showing In Editor
I saw something like this recently (yesterday). I turned on Code Coverage then ran the app. The Code Coverage slider bars showed that ONE Swift file had 0% coverage. Since I just added a bunch of tests that tested that file, it was surprising, When I clicked the icon to go to the code in that file, it showed the Code Coverage column that showed how many times the line was called...ALL were called...yet the Code Coverage slider bar showed 0% on that file....Today when I run it, now it shows 100% on slider bar and in the file. Go figure. Gremlins were running wild yesterday holding that slider bar at 0, today they are sleeping. Who knows? By the way I'm using Xcode 8.3.3. I tried using Xcode 9 a few days ago and got errors in this area, so I went back to something more stable.
Aug ’17
Canadian tax GST
Hi, Does anybody know where you can find how much gst Apple has remitted to the Canadian Revenue Agency on your or your company's behalf? I would think every Canadian developer would need this info for every year come income tax time. In my financial reports in iTunes connect I don't see this info. There is a withholding tax column and an input tax column but for all of my sales there has been only one value in withholding tax for Japanese sales on a report. I don't think these columns are what I am looking for anyway. Thanks in advance.
6
0
2.0k
Aug ’17
Reply to [NSSavePanel savePanel] crashes with NSInternalInconsistencyException
>> [NSSavePanel(FileBrowserViewFileBrowserView) _makeFileBrowserView]Historically, NSavePanel has had trouble with its column view, trying to display a file preview in the last pane, and your crash appears to be happening during the setup of this preview.Does the problem go away completely if you switch to list or icon view? Does the problem tend to occur with a particular file, or particular kind of file, selected in column view? If so, this preview issue may be the cause, and it may be outside your control.
Topic: UI Frameworks SubTopic: AppKit Tags:
Aug ’17
Reply to How to run entire application synchronously?
Quinn, thanks again for the patient explanation!If you could answer me one more question I would very grateful. I have some code, in a class, that acquires data about the user's Terminal session. The problem here is this: if I run this code on the main thread all is fine. However, if the task is run from within my class then the shell commands return some default data about the Terminal, not the actual Terminal window from the user. This is because Swift spawns the shell command on a separate generic thread (I could check with breakpoints). Consider the following code for acquiring the number of available columns from tput.class Tools { static var terminalCol: Int { var tputCol: Int let (tputReturnData, _, _) = Tools.shell(commandPath: /usr/bin/tput, arguments: [cols]) guard let tputString = String(data: tputReturnData, encoding: .utf8) else { return -1 } if let col = Int(tputString.trimmingCharacters(in: .whitespacesAndNewlines)) { tputCol = col } else { tputCol = -1 } return tputCol } static func s
Topic: Programming Languages SubTopic: Swift Tags:
Aug ’17
Building a lightning port connector for switch access
First, I'm trying to determine if it is even technically feasible on the IOS platform or it is locked out. Here's what Im trying to accomplishBuild a device that will connect to the lightning port and allow passthrough charging. The device would allow the user to send various keyboard characters such as numbers, space, enter, arrows, etc. These characters would be used by applications on the ipad to control speech generating software such as proloquo2go, sonoflex, dynavox compass, etc. These applications use keyboard signals to control row-column scanning for disabled people using various types of accessible switches.Bluetooth is not viable as it is too slow to respond to a user who can tap quickly.The only device that is even close is the tapio by origin instruments. It uses an adapter to plug a usb device into the ios device but a keyboards are not supported or similar message pops up and stops input until the ok button is pressed. For a paralyzed user, this is a no-go situation.There are other dev
0
0
777
Aug ’17
High Sierra beta 9 cracks at finder
My High Sierra developer beta 9 cracks every time I tried to open my documents folder in finder.My laptop is 2016 13 MacBook Pro with touch bar (3.3 GHz Intel Core i7, 16 GB 2133 MHz LPDDR3, Intel Iris Graphics 550 1536 MB, 512GB SSD)Update: The finder only cracks when choosing show items as icons, working well when showing items in lists, columns or cover flow
1
0
1k
Sep ’17